1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import pytest
library = 'libraries/Populated Library.lplib'
@pytest.fixture
def project_editor(librepcb):
"""
Fixture opening the project editor with an empty project
"""
librepcb.add_local_library_to_workspace(path=library)
librepcb.add_project('Empty Project')
librepcb.set_project('Empty Project/Empty Project.lpp')
with librepcb.open() as app:
# Check if both editors were opened
assert app.widget('schematicEditor').properties()['visible'] is True
assert app.widget('boardEditor').properties()['visible'] is True
# Start the actual test
yield app
|