diff options
author | Ben Connors <benconnors@outlook.com> | 2019-09-26 19:08:01 -0400 |
---|---|---|
committer | Ben Connors <benconnors@outlook.com> | 2019-09-26 19:08:01 -0400 |
commit | cefc580a2f38f14c0245c9d6a5acbaa67feaf8d4 (patch) | |
tree | a055ef1931c4f8da009aa9f61f4640a37b25e4fe /tests/conftest.py | |
parent | 9bd3390071be3db8c366d44e161e828c8263179b (diff) |
Various fixes; start implementing tests
Diffstat (limited to 'tests/conftest.py')
-rw-r--r-- | tests/conftest.py | 18 |
1 files changed, 18 insertions, 0 deletions
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 |