Loading files
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Test opening projects by command line arguments
"""
project = 'data/fixtures/Empty Project/Empty Project.lpp'
def test_open_project(librepcb, helpers):
"""
Open project by command line argument
"""
librepcb.set_project(project)
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
# Check if the schematic editor is the active window
helpers.wait_for_active_window(app, app.widget('schematicEditor')) # raises on timeout
9cb664f55This file is pinned to the selected release. Download the original to open it in your design tool.