Skip to content
Snippets Groups Projects
Commit 4a70f0b1 authored by angloth's avatar angloth
Browse files

Add some graphID test fixtures

parent 8b14ad6d
No related branches found
No related tags found
1 merge request!2Integrated ID system, traversing and som signal tests
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)]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment