-
Notifications
You must be signed in to change notification settings - Fork 1
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
test #292
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #292 +/- ##
=======================================
Coverage 99.63% 99.64%
=======================================
Files 4 4
Lines 277 279 +2
=======================================
+ Hits 276 278 +2
Misses 1 1 |
assert documents[-1].index == 3 | ||
|
||
|
||
def test_schema_version_1_2_4_prepublink(): |
Check warning
Code scanning / Pylintpython3 (reported by Codacy)
Missing function or method docstring Warning test
XML(version=SCHEMA.V1_2_3).from_url('http://oereblex.test.com/api/geolinks/1500.xml') | ||
|
||
|
||
def test_schema_version_1_2_4(): |
Check warning
Code scanning / Pylintpython3 (reported by Codacy)
Missing function or method docstring Warning test
XML(version=SCHEMA.V1_2_4).from_url('http://oereblex.test.com/api/geolinks/1500.xml') | ||
|
||
|
||
def test_schema_version_1_2_4_faulty_geolink(): |
Check warning
Code scanning / Pylintpython3 (reported by Codacy)
Missing function or method docstring Warning test
assert documents[-1].index == 3 | ||
|
||
|
||
def test_schema_version_1_2_4_faulty_prepublink(): |
Check warning
Code scanning / Pylintpython3 (reported by Codacy)
Missing function or method docstring Warning test
assert len(documents) == 6 | ||
assert documents[0].index is None | ||
assert documents[-3].index == 1 | ||
assert documents[-2].index == 2 |
Check warning
Code scanning / Bandit (reported by Codacy)
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Warning test
with open('tests/resources/geolink_v1.2.4.xml', 'rb') as f: | ||
m.get('http://oereblex.test.com/api/geolinks/1500.xml', content=f.read()) | ||
documents = XML(version=SCHEMA.V1_2_4).from_url('http://oereblex.test.com/api/geolinks/1500.xml') | ||
assert len(documents) == 5 |
Check warning
Code scanning / Bandit (reported by Codacy)
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Warning test
m.get('http://oereblex.test.com/api/geolinks/1500.xml', content=f.read()) | ||
documents = XML(version=SCHEMA.V1_2_4).from_url('http://oereblex.test.com/api/geolinks/1500.xml') | ||
assert len(documents) == 5 | ||
assert documents[0].index is None |
Check warning
Code scanning / Bandit (reported by Codacy)
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Warning test
assert documents[0].index is None | ||
assert documents[-3].index == 1 | ||
assert documents[-2].index == 2 | ||
assert documents[-1].index == 3 |
Check warning
Code scanning / Bandit (reported by Codacy)
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Warning test
documents = XML(version=SCHEMA.V1_2_4).from_url('http://oereblex.test.com/api/geolinks/1500.xml') | ||
assert len(documents) == 5 | ||
assert documents[0].index is None | ||
assert documents[-3].index == 1 |
Check warning
Code scanning / Bandit (reported by Codacy)
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Warning test
with open('tests/resources/prepublink_v1.2.4.xml', 'rb') as f: | ||
m.get('http://oereblex.test.com/api/geolinks/1500.xml', content=f.read()) | ||
documents = XML(version=SCHEMA.V1_2_4).from_url('http://oereblex.test.com/api/geolinks/1500.xml') | ||
assert len(documents) == 6 |
Check warning
Code scanning / Bandit (reported by Codacy)
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Warning test
assert len(documents) == 5 | ||
assert documents[0].index is None | ||
assert documents[-3].index == 1 | ||
assert documents[-2].index == 2 |
Check warning
Code scanning / Bandit (reported by Codacy)
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Warning test
documents = XML(version=SCHEMA.V1_2_4).from_url('http://oereblex.test.com/api/geolinks/1500.xml') | ||
assert len(documents) == 6 | ||
assert documents[0].index is None | ||
assert documents[-3].index == 1 |
Check warning
Code scanning / Bandit (reported by Codacy)
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Warning test
m.get('http://oereblex.test.com/api/geolinks/1500.xml', content=f.read()) | ||
documents = XML(version=SCHEMA.V1_2_4).from_url('http://oereblex.test.com/api/geolinks/1500.xml') | ||
assert len(documents) == 6 | ||
assert documents[0].index is None |
Check warning
Code scanning / Bandit (reported by Codacy)
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Warning test
assert documents[0].index is None | ||
assert documents[-3].index == 1 | ||
assert documents[-2].index == 2 | ||
assert documents[-1].index == 3 |
Check warning
Code scanning / Bandit (reported by Codacy)
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Warning test
|
||
|
||
def test_schema_version_1_2_4_prepublink(): | ||
with requests_mock.mock() as m: |
Check warning
Code scanning / Pylint (reported by Codacy)
Variable name "m" doesn't conform to snake_case naming style Warning test
|
||
def test_schema_version_1_2_4_faulty_geolink(): | ||
with pytest.raises(xmlschema.XMLSchemaValidationError): | ||
with requests_mock.mock() as m: |
Check warning
Code scanning / Pylint (reported by Codacy)
Variable name "m" doesn't conform to snake_case naming style Warning test
|
||
def test_schema_version_1_2_4_faulty_prepublink(): | ||
with pytest.raises(xmlschema.XMLSchemaValidationError): | ||
with requests_mock.mock() as m: |
Check warning
Code scanning / Pylint (reported by Codacy)
Variable name "m" doesn't conform to snake_case naming style Warning test
|
||
|
||
def test_schema_version_1_2_4(): | ||
with requests_mock.mock() as m: |
Check warning
Code scanning / Pylint (reported by Codacy)
Variable name "m" doesn't conform to snake_case naming style Warning test
XML(version=SCHEMA.V1_2_3).from_url('http://oereblex.test.com/api/geolinks/1500.xml') | ||
|
||
|
||
def test_schema_version_1_2_4(): |
Check warning
Code scanning / Pylint (reported by Codacy)
Missing function docstring Warning test
XML(version=SCHEMA.V1_2_4).from_url('http://oereblex.test.com/api/geolinks/1500.xml') | ||
|
||
|
||
def test_schema_version_1_2_4_faulty_geolink(): |
Check warning
Code scanning / Pylint (reported by Codacy)
Missing function docstring Warning test
def test_schema_version_1_2_4_faulty_geolink(): | ||
with pytest.raises(xmlschema.XMLSchemaValidationError): | ||
with requests_mock.mock() as 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
def test_schema_version_1_2_4_faulty_prepublink(): | ||
with pytest.raises(xmlschema.XMLSchemaValidationError): | ||
with requests_mock.mock() as 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
No description provided.