-
Notifications
You must be signed in to change notification settings - Fork 24
Add data source LU1 (Luxembourg STATEC) #283
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -342,6 +342,18 @@ | |
| "structureset": false | ||
| } | ||
| }, | ||
| { | ||
| "id": "LU1", | ||
| "name": "Luxembourg STATEC", | ||
| "url": "https://lustat.statec.lu/rest", | ||
| "supports": { | ||
| "agencyscheme": false, | ||
| "dataconsumerscheme": false, | ||
| "metadataflow": false, | ||
| "metadatastructure": false, | ||
|
Comment on lines
+351
to
+353
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks. This is deliberate, not an oversight. In sdmx1, the
Detail: per the source-policy in |
||
| "structureset": false | ||
| } | ||
| }, | ||
| { | ||
| "id": "NB", | ||
| "name": "Norges Bank (NO)", | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -577,6 +577,23 @@ class TestLSD(DataSourceTest): | |
| } | ||
|
|
||
|
|
||
| class TestLU1(DataSourceTest): | ||
| """Luxembourg STATEC (LUSTAT).""" | ||
|
|
||
| source_id = "LU1" | ||
|
|
||
| endpoint_args = { | ||
| "data": dict(resource_id="DF_A1100", params=dict(lastNObservations=1)), | ||
| } | ||
|
|
||
| xfail = { | ||
| "metadata": NotImplementedError, # Internal to sdmx1 | ||
| "organisationscheme": HTTPError, # 400 Bad Request | ||
| "registration": ValueError, # Internal to sdmx1 | ||
| "structure": NotImplementedError, # 501 Not Implemented | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is correct as written. sdmx1 deliberately turns an HTTP 501 ("not implemented") response into Python's built-in Detail: |
||
| } | ||
|
|
||
|
|
||
| class TestNB(DataSourceTest): | ||
| """Norges Bank. | ||
|
|
||
|
|
||
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.
Fair point: the name does appear in slightly different forms across the registry, the test, and the docs. We've kept each as it is because they each follow the pattern the repo already uses. The documentation heading in particular has a fixed shape, so it can't simply mirror the others.
Detail: every source heading in
doc/sources.rstuses the same form, namely the source ID followed by the office name and the country in parentheses. For example,NBis "Norges Bank (Norway)" andLSDis "National Institute of Statistics (Lithuania)".NBitself varies the same way across its registry name ("Norges Bank (NO)"), its test docstring ("Norges Bank.") and its heading. Happy to standardise on a specific form if you'd prefer one.