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