Skip to content

Conversation

@Debilski
Copy link
Member

Basically I am specifying a dummy layout (on a per-file basis currently), parse and make it available in the dummy_layout_dict fixture variable:

@pytest.fixture
def dummy_layout():
    return """
        ##########
        #  b  y  #
        #a  ..  x#
        ##########
    """

@pytest.fixture
def dummy_layout_dict(dummy_layout):
    # Use this when a simple layout is needed but the details don’t matter
    return pelita.layout.parse_layout(dummy_layout)

Tests can then use it like

def test_something(dummy_layout_dict):
    # do something that needs a dummy_layout_dict but does not really use it
    ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant