Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
h0anle committed Sep 26, 2024
1 parent da23559 commit 75421b9
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 14 deletions.
29 changes: 21 additions & 8 deletions tests/test_1_reading_all_supported_data.py
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
26 changes: 20 additions & 6 deletions tests/test_2_loading_saved_files.py
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

0 comments on commit 75421b9

Please sign in to comment.