-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
12 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,13 @@ | ||
# # Test_1 | ||
# import sys | ||
# from pathlib import Path | ||
# Test_1 | ||
import sys | ||
from pathlib import Path | ||
|
||
print("test") | ||
|
||
# sys.path.insert(0, str(Path(__file__).resolve().parent.parent)) | ||
|
||
# import pytest | ||
# # from examples.ex_reading_all_supported_data import ex_reading_all_supported_data | ||
# from examples.ex_reading_all_supported_data import ex_reading_all_supported_data | ||
|
||
# def test_reading_all_supported_data(qtbot): | ||
# print("test") | ||
# # ex_reading_all_supported_data(run_app=False) | ||
|
||
import pytest | ||
from PySide6.QtWidgets import QApplication | ||
|
||
@pytest.fixture(scope="module", autouse=True) | ||
def app(qtbot): | ||
# This is how you create a QApplication instance for testing | ||
app = QApplication([]) | ||
|
||
# Ensure QApplication is quit after tests | ||
yield app | ||
app.quit() | ||
|
||
def test_some_functionality(qtbot): | ||
print("test") | ||
assert True # Replace with your actual test | ||
# ex_reading_all_supported_data(run_app=False) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters