From 3d60e648e4b5e11f38f7a92d5040d87ae587a00f Mon Sep 17 00:00:00 2001 From: "Peter J. Holzer" Date: Sat, 4 Feb 2023 12:43:04 +0100 Subject: [PATCH] Add test case --- ...823a99faa36286961a106ac901bb2b2d730fddc778 | 11 +++++++ pyproject.toml | 3 ++ tests/__init__,py | 0 ...est_timeseries.cpython-39-pytest-7.2.1.pyc | Bin 0 -> 1197 bytes tests/test_timeseries.py | 28 ++++++++++++++++++ 5 files changed, 42 insertions(+) create mode 100644 data/605da6f41f58b122f41283823a99faa36286961a106ac901bb2b2d730fddc778 create mode 100644 pyproject.toml create mode 100644 tests/__init__,py create mode 100644 tests/__pycache__/test_timeseries.cpython-39-pytest-7.2.1.pyc create mode 100644 tests/test_timeseries.py diff --git a/data/605da6f41f58b122f41283823a99faa36286961a106ac901bb2b2d730fddc778 b/data/605da6f41f58b122f41283823a99faa36286961a106ac901bb2b2d730fddc778 new file mode 100644 index 0000000..86097c7 --- /dev/null +++ b/data/605da6f41f58b122f41283823a99faa36286961a106ac901bb2b2d730fddc778 @@ -0,0 +1,11 @@ +{"description": {"fstype": "tmpfs", "hostname": "ehoiai.int.wsr.at", "measure": "time_until_disk_full", "mountpoint": "/run/user/1054", "node": "rorschach.hjp.at", "remote_addr": "", "unit": "s"}, +"data": [ + [1674806402.1014915, 1000000000.0], + [1674814201.3452954, 1000000000.0], + [1675164602.4004557, 1000000000.0], + [1675165201.6291275, 1000000000.0], + [1675165802.2402072, 1000000000.0], + [1675166401.542857, 1000000000.0], + [1675167002.2809808, 1000000000.0], + [1675167601.2632012, 1000000000.0], + [1675168201.8321788, 1000000000.0]]} diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..0958717 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,3 @@ +[tool.pytest.ini_options] +pythonpath = "." + diff --git a/tests/__init__,py b/tests/__init__,py new file mode 100644 index 0000000..e69de29 diff --git a/tests/__pycache__/test_timeseries.cpython-39-pytest-7.2.1.pyc b/tests/__pycache__/test_timeseries.cpython-39-pytest-7.2.1.pyc new file mode 100644 index 0000000000000000000000000000000000000000..e83340de90fdf0cd25f88784f10f6d1c4893cad7 GIT binary patch literal 1197 zcmZ8hO^@6(7`B~B=5x2*wrqDxkt!qv5!HNccXqZyWw!+m9I8Sq4!K00v6D$RU$PyR zS6*oX|K}ajK%Z(f2z_I_JS5#RD32}i77Z3 zw9jAqe*CM2(2r*Dcq1^_fi5otFvM_-JY3#MViANmi)@S9vjT#k+Qu-QPG(62$4-vBVoh*^W#%wbhlJFK!gYlMU~ zOKg?6RN``pCrUh7;!26942E@f`jE^KJHws`5nKHNv$G*)Yi#|{o@0e(_&q!)Gjbcx zt(hgiX6M+G?7SjJ)-ie$$xl?}$evlpSR4X#3`+?+AK_Iruc#_$wOQpD)_50ufl8mc z?%68I19`B*Cs{-R||0!6qo2Gg98;&uA(f}6-E{H8m3yP3Xb}g zYendTXHoRdW}(tYoi-5Hs0DAYAen{*VYx|iDxH8tRl~rD$Av)L4lq#m17$7gJmiq3w7a{ z=kjUSm7WDRZHI#96SpqRD=u09y0w!}{ZSFYI;qr7oI$kI4Nw)A%BMoF`ErsKG4ln_ zg&)S*h{nD-2wnFj4Y-l@@@}~u`0%oTlhmjEAQK5yK7T8ZX-bVlu3e_6opF{1QK*TM zWe#4`?6(ZnNLez z1VH!{aq$1HKga{8MKHk*ArFW}{&ea!m?PF;zT42XhlYqH5cImgaHGBO6iR6ezAqvL z7W^ma>c5&eVPc#`2>c4DoQyIm*ur$PLs{WtaMlFWUPv-l#QX||k*okbO