Skip to content

Commit

Permalink
Testing
Browse files Browse the repository at this point in the history
  • Loading branch information
edan-bainglass committed Nov 2, 2024
1 parent 0342158 commit 4bf9f91
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
# Only collect code coverage with aiida-core=2.3, to speed up tests
# with higher aiida versions that for some reason run slower, see:
# https://github.com/aiidalab/aiidalab-qe/issues/766
run: pytest -v tests ${{ matrix.aiida-core-version == '2.3' && '--cov=aiidalab_qe' || '' }}
run: pytest -s tests ${{ matrix.aiida-core-version == '2.3' && '--cov=aiidalab_qe' || '' }} -k test_advanced_default

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
Expand Down
11 changes: 11 additions & 0 deletions tests/configuration/test_advanced.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,19 @@
from aiida_pseudo.groups.family import PseudoPotentialFamily

from aiidalab_qe.app.configuration.advanced import AdvancedModel, AdvancedSettings


def test_advanced_default():
"""Test default behavior of advanced setting."""
from aiida import orm

qb = orm.QueryBuilder().append(
PseudoPotentialFamily,
project=["label"],
)

print(qb.all())

model = AdvancedModel()
_ = AdvancedSettings(model=model)
smearing = model.get_model("smearing")
Expand Down

0 comments on commit 4bf9f91

Please sign in to comment.