Skip to content

Commit bbccaa1

Browse files
[issue-570] change fixture dates
Signed-off-by: Armin Tänzer <[email protected]>
1 parent 01b8a75 commit bbccaa1

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

tests/spdx/fixtures.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,9 @@ def package_fixture(
140140
external_references=None,
141141
attribution_texts=None,
142142
primary_package_purpose=PackagePurpose.SOURCE,
143-
release_date=datetime(2022, 12, 1),
144-
built_date=datetime(2022, 12, 2),
145-
valid_until_date=datetime(2022, 12, 3),
143+
release_date=datetime(2022, 11, 1),
144+
built_date=datetime(2022, 11, 2),
145+
valid_until_date=datetime(2022, 11, 3),
146146
) -> Package:
147147
checksums = [checksum_fixture()] if checksums is None else checksums
148148
license_info_from_files = (
@@ -235,7 +235,7 @@ def annotation_fixture(
235235
spdx_id="SPDXRef-File",
236236
annotation_type=AnnotationType.REVIEW,
237237
annotator=actor_fixture(name="annotatorName"),
238-
annotation_date=datetime(2022, 12, 1),
238+
annotation_date=datetime(2022, 12, 24),
239239
annotation_comment="annotationComment",
240240
) -> Annotation:
241241
return Annotation(

tests/spdx/writer/json/expected_results/expected.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"SPDXID": "SPDXRef-File",
3030
"annotations": [
3131
{
32-
"annotationDate": "2022-12-01T00:00:00Z",
32+
"annotationDate": "2022-12-24T00:00:00Z",
3333
"annotationType": "REVIEW",
3434
"annotator": "Person: annotatorName ([email protected])",
3535
"comment": "annotationComment"
@@ -77,7 +77,7 @@
7777
"attributionTexts": [
7878
"packageAttributionText"
7979
],
80-
"builtDate": "2022-12-02T00:00:00Z",
80+
"builtDate": "2022-11-02T00:00:00Z",
8181
"checksums": [
8282
{
8383
"algorithm": "SHA1",
@@ -112,11 +112,11 @@
112112
"packageVerificationCodeValue": "85ed0817af83a24ad8da68c2b5094de69833983c"
113113
},
114114
"primaryPackagePurpose": "SOURCE",
115-
"releaseDate": "2022-12-01T00:00:00Z",
115+
"releaseDate": "2022-11-01T00:00:00Z",
116116
"sourceInfo": "sourceInfo",
117117
"summary": "packageSummary",
118118
"supplier": "Person: supplierName ([email protected])",
119-
"validUntilDate": "2022-12-03T00:00:00Z",
119+
"validUntilDate": "2022-11-03T00:00:00Z",
120120
"versionInfo": "12.2"
121121
}
122122
],

tests/spdx/writer/tagvalue/test_annotation_writer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def test_annotation_writer():
2020
handle.write.assert_has_calls(
2121
[
2222
call(f"Annotator: Person: {annotation.annotator.name} ({annotation.annotator.email})\n"),
23-
call("AnnotationDate: 2022-12-01T00:00:00Z\n"),
23+
call("AnnotationDate: 2022-12-24T00:00:00Z\n"),
2424
call(f"AnnotationType: {annotation.annotation_type.name}\n"),
2525
call(f"SPDXREF: {annotation.spdx_id}\n"),
2626
call(f"AnnotationComment: {annotation.annotation_comment}\n"),

tests/spdx/writer/tagvalue/test_package_writer.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ def test_package_writer():
4949
call(f"ExternalRefComment: {package.external_references[0].comment}\n"),
5050
call(f"PackageAttributionText: {package.attribution_texts[0]}\n"),
5151
call(f"PrimaryPackagePurpose: {package.primary_package_purpose.name}\n"),
52-
call("ReleaseDate: 2022-12-01T00:00:00Z\n"),
53-
call("BuiltDate: 2022-12-02T00:00:00Z\n"),
54-
call("ValidUntilDate: 2022-12-03T00:00:00Z\n"),
52+
call("ReleaseDate: 2022-11-01T00:00:00Z\n"),
53+
call("BuiltDate: 2022-11-02T00:00:00Z\n"),
54+
call("ValidUntilDate: 2022-11-03T00:00:00Z\n"),
5555
]
5656
)

0 commit comments

Comments
 (0)