Skip to content

Commit

Permalink
activating workflows v5
Browse files Browse the repository at this point in the history
  • Loading branch information
cudmore committed Jun 26, 2024
1 parent 20fcfd6 commit 8752845
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ jobs:
run: |
# exlude anything that requires large data (it is not included in PyPi)
# pytest --cov=./tests --cov-report=xml --ignore=tests/test_gen_example_notebook.py
pytest -s --cov=./tests --cov-report=xml
# pytest -s --cov=./tests --cov-report=xml
pytest -s --cov=./tests --cov-report=xml tests/interface/test_app_tmp.py
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
Expand Down
4 changes: 0 additions & 4 deletions pymapmanager/interface2/pyMapManagerApp2.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,6 @@ def loadPlugins(verbose=False, pluginType='stack') -> dict:

return pluginDict

class myApp(QtWidgets.QApplication):
def __init__(self, argv=[], deferFirstWindow=False):
super().__init__(argv)

class PyMapManagerApp(QtWidgets.QApplication):
def __init__(self, argv=[], deferFirstWindow=False):
super().__init__(argv)
Expand Down
6 changes: 2 additions & 4 deletions tests/interface/test_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,15 @@

import mapmanagercore.data

from pymapmanager.interface2 import myApp
# from pymapmanager.interface2 import PyMapManagerApp
from pymapmanager.interface2 import PyMapManagerApp
from pymapmanager.interface2.stackWidgets import stackWidget2

from pymapmanager._logger import logger

# this makes qapp be our PyMapManagerApp, it is derived from QApplication
@pytest.fixture(scope="session")
def qapp_cls():
# return PyMapManagerApp
return myApp
return PyMapManagerApp

def test_app(qtbot, qapp):
logger.info(f'app:{qapp}')
Expand Down

0 comments on commit 8752845

Please sign in to comment.