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

michmuel-test #283

Closed
wants to merge 4 commits into from
Closed

michmuel-test #283

wants to merge 4 commits into from

Conversation

michmuel
Copy link
Contributor

No description provided.

@michmuel michmuel self-assigned this Dec 11, 2023
@michmuel michmuel marked this pull request as draft December 11, 2023 10:36
Copy link

codecov bot commented Dec 11, 2023

Codecov Report

Merging #283 (dcf3189) into master (6aace06) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #283   +/-   ##
=======================================
  Coverage   99.63%   99.64%           
=======================================
  Files           4        4           
  Lines         277      279    +2     
=======================================
+ Hits          276      278    +2     
  Misses          1        1           

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

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
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

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
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

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
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

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
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

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
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

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
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

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
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

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
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

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
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

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
tests/test_parser.py Fixed Show fixed Hide fixed
tests/test_parser.py Fixed Show fixed Hide fixed
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

Missing function or method docstring
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

Missing function or method docstring
tests/test_parser.py Fixed Show fixed Hide fixed
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

Missing function or method docstring
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

Missing function or method docstring
tests/test_parser.py Fixed Show fixed Hide fixed


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

Variable name "m" doesn't conform to snake_case naming style

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

Variable name "m" doesn't conform to snake_case naming style

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

Variable name "m" doesn't conform to snake_case naming style


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

Variable name "m" doesn't conform to snake_case naming style
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

Missing function docstring
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

Missing function docstring
@@ -275,7 +275,7 @@
with requests_mock.mock() as m:
with open('tests/resources/prepublink_v1.2.3.xml', 'rb') as f:
m.get('http://oereblex.test.com/api/geolinks/1500.xml', content=f.read())
documents = XML(version=SCHEMA.V1_2_2).from_url('http://oereblex.test.com/api/geolinks/1500.xml')
documents = XML(version=SCHEMA.V1_2_3).from_url('http://oereblex.test.com/api/geolinks/1500.xml')

Check warning

Code scanning / Pylint (reported by Codacy)

Line too long (105/100) Warning test

Line too long (105/100)
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

Variable name "f" doesn't conform to snake_case naming style
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

Variable name "f" doesn't conform to snake_case naming style
with requests_mock.mock() as m:
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')

Check warning

Code scanning / Pylint (reported by Codacy)

Line too long (105/100) Warning test

Line too long (105/100)
@michmuel michmuel closed this Dec 11, 2023
@michmuel michmuel deleted the test branch December 11, 2023 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant