Skip to content

Commit

Permalink
Fix failing tests
Browse files Browse the repository at this point in the history
Sphinx 7.2 doesn't support Python 3.8, but we do.
clenk committed Sep 29, 2023
1 parent 5f3ce3c commit 12e7283
Showing 2 changed files with 10 additions and 12 deletions.
20 changes: 9 additions & 11 deletions app/objects/c_source.py
Original file line number Diff line number Diff line change
@@ -60,17 +60,15 @@ def _fix_loaded_object_origins(input_data):
:param input_data: A 'source' dictionary
:return: input_data with updated facts/relationships (patched in place)
"""
if 'facts' in input_data:
for y in input_data['facts']:
y['origin_type'] = OriginType.IMPORTED.name
y['source'] = input_data['id']
if 'relationships' in input_data:
for y in input_data['relationships']:
y['source']['origin_type'] = OriginType.IMPORTED.name
y['source']['source'] = input_data['id']
if 'target' in y:
y['target']['origin_type'] = OriginType.IMPORTED.name
y['target']['source'] = input_data['id']
for y in input_data.get('facts', []):
y['origin_type'] = OriginType.IMPORTED.name
y['source'] = input_data['id']
for y in input_data.get('relationships', []):
y['source']['origin_type'] = OriginType.IMPORTED.name
y['source']['source'] = input_data['id']
if y.get('target'):
y['target']['origin_type'] = OriginType.IMPORTED.name
y['target']['source'] = input_data['id']


class Source(FirstClassObjectInterface, BaseObject):
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@ jinja2==3.1.2
pyyaml==6.0.1
cryptography==41.0.3
websockets==11.0.3
Sphinx==7.2.5
Sphinx==7.1.2
sphinx_rtd_theme==1.3.0
myst-parser==2.0.0
marshmallow==3.20.1

0 comments on commit 12e7283

Please sign in to comment.