diff --git a/test/fixtures/graph_id.py b/test/fixtures/graph_id.py new file mode 100644 index 0000000000000000000000000000000000000000..af6a37f89d2f9eeab21361a388a608e2c038d182 --- /dev/null +++ b/test/fixtures/graph_id.py @@ -0,0 +1,19 @@ +import pytest +from b_asic import GraphID, GraphIDGenerator + +""" +Use a fixture for initializing objects and pass them as argument to a test function +""" +@pytest.fixture +def graph_id(): + return GraphID("add", 1) + + +@pytest.fixture +def graph_ids(): + return [GraphID("add", 1), GraphID("add", 2), \ + GraphID("sig", 1), GraphID("sig", 1), GraphID("sub", 3), \ + GraphID("ÅÄÖ", 2), GraphID("", 3), \ + GraphID("ABCDEFGHIJKLMNOPQRSTUVWXYZ", 4)] + +