Skip to content

Commit 38b376a

Browse files
committed
fix
1 parent 57fa00b commit 38b376a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

pycsw/ogc/api/records.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1283,6 +1283,7 @@ def record2json(record, url, collection, mode='ogcapi-records'):
12831283
# OWSlib currently uses .keywords_object for keywords with url, see https://github.com/geopython/OWSLib/pull/765
12841284
try:
12851285
for theme in json.loads(record.themes):
1286+
print("THEME", theme)
12861287
try:
12871288
ogcapi_themes.append({
12881289
'scheme': theme['thesaurus'].get('url') or theme['thesaurus'].get('title'),

tests/functionaltests/suites/oarec/test_oarec_functional.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ def test_json_transaction(config, sample_record):
370370
headers, status, content = api.manage_collection_item(
371371
request_headers, 'create', data=sample_record)
372372

373-
assert status == 400
373+
assert status == 405
374374

375375
config2['manager']['transactions'] = 'false'
376376

@@ -383,7 +383,7 @@ def test_json_transaction(config, sample_record):
383383
headers, status, content = api.manage_collection_item(
384384
request_headers, 'create', data=sample_record)
385385

386-
assert status == 400
386+
assert status == 405
387387

388388

389389
def test_xml_transaction(config):

0 commit comments

Comments
 (0)