Skip to content

Commit b0346e3

Browse files
committed
wip
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent a1a2854 commit b0346e3

File tree

5 files changed

+8
-7
lines changed

5 files changed

+8
-7
lines changed

tests/_data/snapshots/enum_Encoding-1.5.json.bin

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"licenses": [
66
{
77
"license": {
8-
"bom-ref": "BomRef.564729066134416.17496630104940403",
8+
"bom-ref": "dummy_license",
99
"name": "att.encoding: BASE_64",
1010
"text": {
1111
"content": "att.encoding: BASE_64",

tests/_data/snapshots/enum_Encoding-1.5.xml.bin

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<component type="library" bom-ref="dummy">
88
<name>dummy</name>
99
<licenses>
10-
<license bom-ref="BomRef.46957522301510923.6461543191510534">
10+
<license bom-ref="dummy_license">
1111
<name>att.encoding: BASE_64</name>
1212
<text content-type="text/plain" encoding="base64">att.encoding: BASE_64</text>
1313
</license>

tests/_data/snapshots/enum_Encoding-1.6.json.bin

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"licenses": [
66
{
77
"license": {
8-
"bom-ref": "BomRef.11780194260115473.7999925389704695",
8+
"bom-ref": "dummy_license",
99
"name": "att.encoding: BASE_64",
1010
"text": {
1111
"content": "att.encoding: BASE_64",

tests/_data/snapshots/enum_Encoding-1.6.xml.bin

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<component type="library" bom-ref="dummy">
88
<name>dummy</name>
99
<licenses>
10-
<license bom-ref="BomRef.9180092790909863.4566601271888149">
10+
<license bom-ref="dummy_license">
1111
<name>att.encoding: BASE_64</name>
1212
<text content-type="text/plain" encoding="base64">att.encoding: BASE_64</text>
1313
</license>

tests/test_enums.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,10 @@ def test_knows_value(self, value: str) -> None:
186186
@named_data(*NAMED_OF_SV)
187187
def test_cases_render_valid(self, of: OutputFormat, sv: SchemaVersion, *_: Any, **__: Any) -> None:
188188
bom = _make_bom(components=[Component(name='dummy', type=ComponentType.LIBRARY, bom_ref='dummy', licenses=(
189-
DisjunctiveLicense(name=f'att.encoding: {encoding.name}', text=AttachedText(
190-
content=f'att.encoding: {encoding.name}', encoding=encoding
191-
)) for encoding in Encoding
189+
DisjunctiveLicense(bom_ref='dummy_license',
190+
name=f'att.encoding: {encoding.name}', text=AttachedText(
191+
content=f'att.encoding: {encoding.name}', encoding=encoding
192+
)) for encoding in Encoding
192193
))])
193194
super()._test_cases_render(bom, of, sv)
194195

0 commit comments

Comments
 (0)