Skip to content

Commit

Permalink
Fix IUT and MIP tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
J08nY committed Feb 1, 2025
1 parent 3173ff9 commit 8031764
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
1 change: 0 additions & 1 deletion tests/cc/test_cc_schemes.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ def test_australia():
assert absolute_urls(ineval)


@pytest.mark.xfail(reason="May fail due to server errors.", raises=RequestException)
@pytest.fixture
def canada_certified():
return CCSchemes.get_canada_certified()
Expand Down
4 changes: 3 additions & 1 deletion tests/fips/test_fips_iut.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import pytest
import tests.data.fips.iut
from requests import RequestException

from sec_certs.configuration import config
from sec_certs.dataset.fips import FIPSDataset
Expand Down Expand Up @@ -46,8 +47,9 @@ def test_iut_snapshot_from_web(preferred_source):
assert IUTSnapshot.from_web()


@pytest.mark.xfail(reason="May fail due to server errors.", raises=RequestException)
def test_from_nist():
return IUTSnapshot.from_nist_web()
assert IUTSnapshot.from_nist_web()


def test_iut_matching(processed_dataset: FIPSDataset):
Expand Down
4 changes: 3 additions & 1 deletion tests/fips/test_fips_mip.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import pytest
import tests.data.fips.mip
from requests import RequestException

from sec_certs.configuration import config
from sec_certs.dataset.fips import FIPSDataset
Expand Down Expand Up @@ -47,8 +48,9 @@ def test_from_web(preferred_source):
assert MIPSnapshot.from_web()


@pytest.mark.xfail(reason="May fail due to server errors.", raises=RequestException)
def test_from_nist():
return MIPSnapshot.from_nist_web()
assert MIPSnapshot.from_nist_web()


def test_mip_matching(processed_dataset: FIPSDataset):
Expand Down

0 comments on commit 8031764

Please sign in to comment.