-
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* test: consolidate imports * test: recreate all fixtures * test: docs Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
- Loading branch information
1 parent
0853d14
commit ab862e7
Showing
113 changed files
with
1,795 additions
and
1,706 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# TEST FIXTURES | ||
|
||
## RE-CREATION | ||
|
||
Some assets here can be (re-)created automatically, by setting the env var `CDX_TEST_RECREATE_SNAPSHOTS=1`. | ||
It might also help to set `PYTHONHASHSEED=0`! | ||
As a shortcut just run: | ||
|
||
```shell | ||
CDX_TEST_RECREATE_SNAPSHOTS=1 poetry run tox -e py | ||
``` | ||
|
||
The files will be written as is, which might not be human-readable. feel free to reformat the files manually. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,64 +1,64 @@ | ||
{ | ||
"$schema": "http://cyclonedx.org/schema/bom-1.2b.schema.json", | ||
"bomFormat": "CycloneDX", | ||
"components": [ | ||
{ | ||
"bom-ref": "17e3b199-dc0b-42ef-bfdd-1fa81a1e3eda", | ||
"name": "comp_a", | ||
"type": "library", | ||
"version": "1.0.0" | ||
}, | ||
{ | ||
"bom-ref": "0b049d09-64c0-4490-a0f5-c84d9aacf857", | ||
"components": [ | ||
{ | ||
"bom-ref": "cd3e9c95-9d41-49e7-9924-8cf0465ae789", | ||
"name": "comp_c", | ||
"type": "library", | ||
"version": "1.0.0" | ||
} | ||
], | ||
"name": "comp_b", | ||
"type": "library", | ||
"version": "1.0.0" | ||
} | ||
"$schema": "http://cyclonedx.org/schema/bom-1.2b.schema.json", | ||
"bomFormat": "CycloneDX", | ||
"specVersion": "1.2", | ||
"serialNumber": "urn:uuid:d571cf4c-efeb-4603-b744-a58a3e95410a", | ||
"version": 1, | ||
"metadata": { | ||
"timestamp": "2023-01-07T11:40:00.654095+00:00", | ||
"tools": [ | ||
{ | ||
"vendor": "CycloneDX", | ||
"name": "cyclonedx-python-lib", | ||
"version": "3.1.2" | ||
} | ||
], | ||
"dependencies": [ | ||
{ | ||
"dependsOn": [ | ||
"17e3b199-dc0b-42ef-bfdd-1fa81a1e3eda", | ||
"0b049d09-64c0-4490-a0f5-c84d9aacf857" | ||
], | ||
"ref": "be2c6502-7e9a-47db-9a66-e34f729810a3" | ||
}, | ||
{ | ||
"dependsOn": [], | ||
"ref": "17e3b199-dc0b-42ef-bfdd-1fa81a1e3eda" | ||
}, | ||
"component": { | ||
"type": "library", | ||
"bom-ref": "be2c6502-7e9a-47db-9a66-e34f729810a3", | ||
"name": "app", | ||
"version": "1.0.0" | ||
} | ||
}, | ||
"components": [ | ||
{ | ||
"type": "library", | ||
"bom-ref": "17e3b199-dc0b-42ef-bfdd-1fa81a1e3eda", | ||
"name": "comp_a", | ||
"version": "1.0.0" | ||
}, | ||
{ | ||
"type": "library", | ||
"bom-ref": "0b049d09-64c0-4490-a0f5-c84d9aacf857", | ||
"name": "comp_b", | ||
"version": "1.0.0", | ||
"components": [ | ||
{ | ||
"dependsOn": [ | ||
"cd3e9c95-9d41-49e7-9924-8cf0465ae789" | ||
], | ||
"ref": "0b049d09-64c0-4490-a0f5-c84d9aacf857" | ||
"type": "library", | ||
"bom-ref": "cd3e9c95-9d41-49e7-9924-8cf0465ae789", | ||
"name": "comp_c", | ||
"version": "1.0.0" | ||
} | ||
], | ||
"metadata": { | ||
"component": { | ||
"bom-ref": "be2c6502-7e9a-47db-9a66-e34f729810a3", | ||
"name": "app", | ||
"type": "library", | ||
"version": "1.0.0" | ||
}, | ||
"timestamp": "2022-07-27T10:06:17.101289+00:00", | ||
"tools": [ | ||
{ | ||
"name": "cyclonedx-python-lib", | ||
"vendor": "CycloneDX", | ||
"version": "0.11.0" | ||
} | ||
] | ||
] | ||
} | ||
], | ||
"dependencies": [ | ||
{ | ||
"ref": "be2c6502-7e9a-47db-9a66-e34f729810a3", | ||
"dependsOn": [ | ||
"0b049d09-64c0-4490-a0f5-c84d9aacf857", | ||
"17e3b199-dc0b-42ef-bfdd-1fa81a1e3eda" | ||
] | ||
}, | ||
{ | ||
"ref": "17e3b199-dc0b-42ef-bfdd-1fa81a1e3eda", | ||
"dependsOn": [] | ||
}, | ||
"serialNumber": "urn:uuid:b1d647c9-e4c5-4d8f-be8a-1751ac3ad4d5", | ||
"specVersion": "1.2", | ||
"version": 1 | ||
} | ||
{ | ||
"ref": "0b049d09-64c0-4490-a0f5-c84d9aacf857", | ||
"dependsOn": [ | ||
"cd3e9c95-9d41-49e7-9924-8cf0465ae789" | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.