Changeset View
Changeset View
Standalone View
Standalone View
swh/indexer/tests/storage/test_converters.py
Show First 20 Lines • Show All 152 Lines • ▼ Show 20 Lines | def db_to_fossology_license(self): | ||||
'tool_id': 20, | 'tool_id': 20, | ||||
'tool_name': 'nomossa', | 'tool_name': 'nomossa', | ||||
'tool_version': '5.22', | 'tool_version': '5.22', | ||||
'tool_configuration': {}, | 'tool_configuration': {}, | ||||
'licenses': ['GPL2.0'], | 'licenses': ['GPL2.0'], | ||||
} | } | ||||
expected_license = { | expected_license = { | ||||
'id': b'some-id', | |||||
'licenses': ['GPL2.0'], | 'licenses': ['GPL2.0'], | ||||
'tool': { | 'tool': { | ||||
'id': 20, | 'id': 20, | ||||
'name': 'nomossa', | 'name': 'nomossa', | ||||
'version': '5.22', | 'version': '5.22', | ||||
'configuration': {}, | 'configuration': {}, | ||||
} | } | ||||
} | } | ||||
Show All 30 Lines |