File: test_open.py

package info (click to toggle)
librepcb 1.2.0%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 58,488 kB
  • sloc: cpp: 267,986; python: 12,100; ansic: 6,899; xml: 234; sh: 215; makefile: 115; perl: 73
file content (16 lines) | stat: -rw-r--r-- 477 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""
Test opening the project editor
"""


def test_window_titles(project_editor):
    """
    Check window titles of schematic and board editor
    """
    se = project_editor.widget('schematicEditor')
    be = project_editor.widget('boardEditor')
    assert se.properties()['windowTitle'] == 'Empty Project.lpp - LibrePCB Schematic Editor'
    assert be.properties()['windowTitle'] == 'Empty Project.lpp - LibrePCB Board Editor'