Skip to content

Commit

Permalink
Add fn.py for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
anatoly-scherbakov committed Jan 7, 2024
1 parent f532df4 commit 48e7bc0
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
16 changes: 15 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jeeves-yeti-pyproject = { version = "^0.2.20", markers = "python_version >= '3.1
types-pyyaml = "^6.0.12.11"
rdflib-pyld-compat = "^0.1.0"
pytest-github-actions-annotate-failures = "^0.2.0"
lambdas = "^0.2.0"

[build-system]
requires = ["poetry-core"]
Expand Down
7 changes: 2 additions & 5 deletions tests/test_specification.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
from tests.common import load_tests
from tests.errors import FailureToFail
from yaml_ld.errors import YAMLLDError
from lambdas import _

tests = Namespace('https://w3c.github.io/json-ld-api/tests/vocab#')

Expand All @@ -34,11 +35,7 @@ def test_to_rdf(test_case: TestCase):
assert actual_graph.isomorphic(expected_graph)


@pytest.mark.parametrize(
'test_case',
load_tests(tests.ExpandTest),
ids=operator.attrgetter('test'),
)
@pytest.mark.parametrize('test_case', load_tests(tests.ExpandTest), ids=_.test)
def test_expand(test_case: TestCase):
raw_document = test_case.input.read_bytes()

Expand Down

4 comments on commit 48e7bc0

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCoverMissing
yaml_ld
   __init__.py50100% 
   annotations.py50100% 
   compact.py2199 57%
   errors.py2611 96%
   expand.py220100% 
   loader.py210100% 
   models.py140100% 
   parse.py2911 97%
   rdf.py120100% 
   to_rdf.py90100% 
TOTAL1641193% 

Tests Skipped Failures Errors Time
850 1 💤 409 ❌ 0 🔥 1m 49s ⏱️

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCoverMissing
yaml_ld
   __init__.py50100% 
   annotations.py50100% 
   compact.py2199 57%
   errors.py2611 96%
   expand.py220100% 
   loader.py210100% 
   models.py140100% 
   parse.py2911 97%
   rdf.py120100% 
   to_rdf.py90100% 
TOTAL1641193% 

Tests Skipped Failures Errors Time
850 1 💤 409 ❌ 0 🔥 1m 51s ⏱️

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCoverMissing
yaml_ld
   __init__.py50100% 
   annotations.py50100% 
   compact.py2199 57%
   errors.py2611 96%
   expand.py220100% 
   loader.py210100% 
   models.py140100% 
   parse.py2911 97%
   rdf.py120100% 
   to_rdf.py90100% 
TOTAL1641193% 

Tests Skipped Failures Errors Time
850 1 💤 409 ❌ 0 🔥 1m 58s ⏱️

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCoverMissing
yaml_ld
   __init__.py50100% 
   annotations.py50100% 
   compact.py2199 57%
   errors.py2611 96%
   expand.py220100% 
   loader.py210100% 
   models.py140100% 
   parse.py2911 97%
   rdf.py120100% 
   to_rdf.py90100% 
TOTAL1641193% 

Tests Skipped Failures Errors Time
850 1 💤 409 ❌ 0 🔥 2m 7s ⏱️

Please sign in to comment.