-
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
add support for oereblex api version 1.2.3 #247
Conversation
michmuel
commented
Apr 21, 2023
- schema file added for version 1.2.3 (same file as for version 1.2.2)
- tests added for version 1.2.3 (same tests as for version 1.2.2)
Codecov Report
@@ Coverage Diff @@
## master #247 +/- ##
=======================================
Coverage 99.63% 99.63%
=======================================
Files 4 4
Lines 274 276 +2
=======================================
+ Hits 273 275 +2
Misses 1 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pylint (reported by Codacy) found more than 10 potential problems in the proposed changes. Check the Files changed tab for more details.
documents = XML(version=SCHEMA.V1_2_2).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.
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.
with open('tests/resources/geolink_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') | ||
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.
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') | ||
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.
documents = XML(version=SCHEMA.V1_2_2).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.
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.
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.
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') | ||
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.
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.
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') | ||
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pylintpython3 (reported by Codacy) found more than 10 potential problems in the proposed changes. Check the Files changed tab for more details.
Do you know what exactly changes between 1.2.2 and 1.2.3? Do you see an impact on pyramid_oereb? |
@jwkaltz From the release notes (see below) I do not expect any effects on pyramid oereb. Do you? Release Notes:
|
I will merge the branch and create a new tag. Then, we will perform tests with pyramid oereb and the preview instance of oereblex for our cantonal setting. |
@michmuel thanks, I also don't see a direct impact on pyramid_oereb |