File: test_qtawesome.py

package info (click to toggle)
python-qtawesome 0.4.4%2Bds1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 540 kB
  • ctags: 143
  • sloc: python: 499; makefile: 172
file content (16 lines) | stat: -rw-r--r-- 360 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
r"""
Tests for QtAwesome.
"""
# Standard library imports
import subprocess

# Test Library imports
import pytest

def test_segfault_import():
    output_number = subprocess.call('python -c "import qtawesome '
                                    '; qtawesome.icon()"', shell=True)
    assert output_number == 0
    
if __name__ == "__main__":
    pytest.main()