-
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
41 additions
and
14 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,12 +1,25 @@ | ||
# Test_1 | ||
import sys | ||
from pathlib import Path | ||
# # Test_1 | ||
# import sys | ||
# from pathlib import Path | ||
|
||
sys.path.insert(0, str(Path(__file__).resolve().parent.parent)) | ||
# 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 | ||
|
||
# def test_reading_all_supported_data(qtbot): | ||
# print("test") | ||
# # ex_reading_all_supported_data(run_app=False) | ||
|
||
import pytest | ||
from examples.ex_reading_all_supported_data import ex_reading_all_supported_data | ||
from PySide6.QtWidgets import QApplication | ||
|
||
@pytest.fixture(scope="module", autouse=True) | ||
def app(qtbot): | ||
app = QApplication([]) | ||
yield app | ||
app.quit() | ||
|
||
def test_reading_all_supported_data(qtbot): | ||
|
||
ex_reading_all_supported_data(run_app=False) | ||
def test_some_functionality(qtbot): | ||
print("test") | ||
assert True # Replace with your actual test |
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,10 +1,24 @@ | ||
import sys | ||
from pathlib import Path | ||
# import sys | ||
# from pathlib import Path | ||
|
||
sys.path.insert(0, str(Path(__file__).resolve().parent.parent)) | ||
# sys.path.insert(0, str(Path(__file__).resolve().parent.parent)) | ||
|
||
# import pytest | ||
# # from examples.ex_loading_saved_files import ex_loading_saved_files | ||
|
||
# def test_loading_saved_files(qtbot): | ||
# print("test") | ||
# # ex_loading_saved_files(run_app=False) | ||
|
||
import pytest | ||
from examples.ex_loading_saved_files import ex_loading_saved_files | ||
from PySide6.QtWidgets import QApplication | ||
|
||
@pytest.fixture(scope="module", autouse=True) | ||
def app(qtbot): | ||
app = QApplication([]) | ||
yield app | ||
app.quit() | ||
|
||
def test_loading_saved_files(qtbot): | ||
ex_loading_saved_files(run_app=False) | ||
def test_some_functionality(qtbot): | ||
print("test") | ||
assert True # Replace with your actual test |