Skip to content

Commit

Permalink
add docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
michmuel committed Jan 8, 2024
1 parent 730cf42 commit 366d5a9
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/test_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,9 @@ def test_schema_version_1_2_3_faulty_geolink():


def test_schema_version_1_2_4():
"""
test of schema version 1.2.4
"""
with requests_mock.mock() as mock_m:
with open('tests/resources/geolink_v1.2.4.xml', 'rb') as f:

Check warning

Code scanning / Pylint (reported by Codacy)

Variable name "f" doesn't conform to snake_case naming style Warning test

Variable name "f" doesn't conform to snake_case naming style
mock_m.get('http://oereblex.test.com/api/geolinks/1500.xml', content=f.read())
Expand All @@ -312,6 +315,9 @@ def test_schema_version_1_2_4():


def test_schema_version_1_2_4_prepublink():
"""
test of schema version 1.2.4: prepublink
"""
with requests_mock.mock() as mock_m:
with open('tests/resources/prepublink_v1.2.4.xml', 'rb') as f:

Check warning

Code scanning / Pylint (reported by Codacy)

Variable name "f" doesn't conform to snake_case naming style Warning test

Variable name "f" doesn't conform to snake_case naming style
mock_m.get('http://oereblex.test.com/api/geolinks/1500.xml', content=f.read())
Expand All @@ -324,6 +330,9 @@ def test_schema_version_1_2_4_prepublink():


def test_schema_version_1_2_4_faulty_prepublink():
"""
test of schema version 1.2.4: faulty prepublink
"""
with pytest.raises(xmlschema.XMLSchemaValidationError):
with requests_mock.mock() as mock_m:
with open('tests/resources/prepublink_v1.2.4_error_enactment_date.xml', 'rb') as f:

Check warning

Code scanning / Pylint (reported by Codacy)

Variable name "f" doesn't conform to snake_case naming style Warning test

Variable name "f" doesn't conform to snake_case naming style
Expand All @@ -332,6 +341,9 @@ def test_schema_version_1_2_4_faulty_prepublink():


def test_schema_version_1_2_4_faulty_geolink():
"""
test of schema version 1.2.4: faulty geolink
"""
with pytest.raises(xmlschema.XMLSchemaValidationError):
with requests_mock.mock() as mock_m:
with open('tests/resources/geolink_v1.2.4_error_status.xml', 'rb') as f:

Check warning

Code scanning / Pylint (reported by Codacy)

Variable name "f" doesn't conform to snake_case naming style Warning test

Variable name "f" doesn't conform to snake_case naming style
Expand Down

0 comments on commit 366d5a9

Please sign in to comment.