summaryrefslogtreecommitdiff
path: root/tests/conftest.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/conftest.py')
-rw-r--r--tests/conftest.py18
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