From 4bf9f9153804a596fdb383f2e3d245f5c12435a5 Mon Sep 17 00:00:00 2001 From: Edan Bainglass Date: Sat, 2 Nov 2024 07:53:03 +0000 Subject: [PATCH] Testing --- .github/workflows/ci.yml | 2 +- tests/configuration/test_advanced.py | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dc01c3400..1a2abc48d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/tests/configuration/test_advanced.py b/tests/configuration/test_advanced.py index 1080d1f4f..7eb9e8a8b 100644 --- a/tests/configuration/test_advanced.py +++ b/tests/configuration/test_advanced.py @@ -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")