Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add import pytest in some files in integration_tests #286

Merged
merged 2 commits into from
Feb 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions abipy/integration_tests/itest_ebands.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

from abipy.core.testing import has_matplotlib

import pytest

def make_scf_nscf_inputs(tvars, pp_paths, nstep=50):
"""
Expand Down Expand Up @@ -154,7 +155,7 @@ def itest_unconverged_scf(fwp, tvars):
#dt = t0.datetimes
#assert (dt.submission, dt.start, dt.end) == (None, None, None)


@pytest.mark.skip(reason="there is currently no way to test this on the testfarm (builder scope_gnu_12.2_abipy )")
def itest_bandstructure_flow(fwp, tvars):
"""
Testing band-structure flow with one dependency: SCF -> NSCF.
Expand Down Expand Up @@ -401,7 +402,7 @@ def itest_htc_bandstructure(fwp, tvars):
assert not gsr.ebands.has_bzpath
gsr.ebands.get_edos()


@pytest.mark.skip(reason="there is currently no way to test this on the testfarm (builder scope_gnu_12.2_abipy )")
def itest_metagga_ebands_flow(fwp, tvars):
"""
Test band structure calculation with meta-GGA
Expand Down
3 changes: 2 additions & 1 deletion abipy/integration_tests/itest_frohlich_zpr.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

from abipy.dfpt.ddb import DdbFile

import pytest

def make_scf_input(usepaw=0):
"""Returns the GS input file"""
Expand Down Expand Up @@ -44,7 +45,7 @@ def make_scf_input(usepaw=0):

return scf_input


@pytest.mark.skip(reason="there is currently no way to test this on the testfarm (builder scope_gnu_12.2_abipy )")
def itest_frohlich_zpr_flow(fwp, tvars):
"""
"""
Expand Down
3 changes: 2 additions & 1 deletion abipy/integration_tests/itest_gw.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

#from abipy.core.testing import has_abinit, has_matplotlib

import pytest

def make_g0w0_inputs(ngkpt, tvars):
"""
Expand Down Expand Up @@ -93,7 +94,7 @@ def make_g0w0_inputs(ngkpt, tvars):

return multi.split_datasets()


@pytest.mark.skip(reason="there is currently no way to test this on the testfarm (builder scope_gnu_12.2_abipy )")
def itest_g0w0_flow(fwp, tvars):
"""Test flow for G0W0 calculations."""
scf, nscf, scr, sig = make_g0w0_inputs(ngkpt=[2, 2, 2], tvars=tvars)
Expand Down
3 changes: 2 additions & 1 deletion abipy/integration_tests/itest_relaxations.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

from abipy.core.testing import has_matplotlib

import pytest

def ion_relaxation(tvars, ntime=50):
structure = abilab.Structure.from_file(abidata.cif_file("si.cif"))
Expand Down Expand Up @@ -44,7 +45,7 @@ def ion_relaxation(tvars, ntime=50):

return inp


@pytest.mark.skip(reason="there is currently no way to test this on the testfarm (builder scope_gnu_12.2_abipy )")
def itest_atomic_relaxation(fwp, tvars):
"""Test atomic relaxation with automatic restart."""
# Build the flow
Expand Down
Loading