Files
manim-slides/tests/test_qt_utils.py
Jérome Eertmans 2853ed08e1 chore(tests): adding tests for Qt widgets (#300)
* chore(tests): adding tests for Qt widgets

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* fix: reset WINDOW name

* chore(tests): addign tests

* chore: adding more tests

* fix how bin existence is checked

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* fix: which takes str

* more tests!

* todo: fix

* change verbosity in tests

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-10-27 16:40:05 +02:00

15 lines
253 B
Python

from PySide6.QtWidgets import QApplication
from manim_slides.qt_utils import qapp
def test_qapp() -> None:
assert isinstance(qapp(), QApplication)
def test_duplicated_qapp() -> None:
app1 = qapp()
app2 = qapp()
assert app1 == app2