From cefc580a2f38f14c0245c9d6a5acbaa67feaf8d4 Mon Sep 17 00:00:00 2001 From: Ben Connors Date: Thu, 26 Sep 2019 19:08:01 -0400 Subject: Various fixes; start implementing tests --- tests/conftest.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 tests/conftest.py (limited to 'tests/conftest.py') diff --git a/tests/conftest.py b/tests/conftest.py new file mode 100644 index 0000000..71bd3ac --- /dev/null +++ b/tests/conftest.py @@ -0,0 +1,18 @@ +import datetime as dt + +import pytest + +from blc2.workspace import Workspace +from blc2.topology import Fixture + +@pytest.fixture +def ws(): + """Return a workspace.""" + return Workspace("", "" ,"", dt.datetime.now()) + +@pytest.fixture +def aws(): + """Return a more advanced workspace with 4 channels on 1 fixture.""" + w = Workspace("", "", "", dt.datetime.now()) + Fixture(w, id_=0, channel_count=4) + return w -- cgit v1.2.3