diff --git a/tests/spdx/fixtures.py b/tests/spdx/fixtures.py index 5d58b9fbf..3065bc824 100644 --- a/tests/spdx/fixtures.py +++ b/tests/spdx/fixtures.py @@ -140,9 +140,9 @@ def package_fixture( external_references=None, attribution_texts=None, primary_package_purpose=PackagePurpose.SOURCE, - release_date=datetime(2022, 12, 1), - built_date=datetime(2022, 12, 2), - valid_until_date=datetime(2022, 12, 3), + release_date=datetime(2022, 11, 1), + built_date=datetime(2022, 11, 2), + valid_until_date=datetime(2022, 11, 3), ) -> Package: checksums = [checksum_fixture()] if checksums is None else checksums license_info_from_files = ( @@ -235,7 +235,7 @@ def annotation_fixture( spdx_id="SPDXRef-File", annotation_type=AnnotationType.REVIEW, annotator=actor_fixture(name="annotatorName"), - annotation_date=datetime(2022, 12, 1), + annotation_date=datetime(2022, 12, 24), annotation_comment="annotationComment", ) -> Annotation: return Annotation( diff --git a/tests/spdx/writer/json/expected_results/expected.json b/tests/spdx/writer/json/expected_results/expected.json index b6a364b35..0d444ba52 100644 --- a/tests/spdx/writer/json/expected_results/expected.json +++ b/tests/spdx/writer/json/expected_results/expected.json @@ -29,7 +29,7 @@ "SPDXID": "SPDXRef-File", "annotations": [ { - "annotationDate": "2022-12-01T00:00:00Z", + "annotationDate": "2022-12-24T00:00:00Z", "annotationType": "REVIEW", "annotator": "Person: annotatorName (some@mail.com)", "comment": "annotationComment" @@ -77,7 +77,7 @@ "attributionTexts": [ "packageAttributionText" ], - "builtDate": "2022-12-02T00:00:00Z", + "builtDate": "2022-11-02T00:00:00Z", "checksums": [ { "algorithm": "SHA1", @@ -112,11 +112,11 @@ "packageVerificationCodeValue": "85ed0817af83a24ad8da68c2b5094de69833983c" }, "primaryPackagePurpose": "SOURCE", - "releaseDate": "2022-12-01T00:00:00Z", + "releaseDate": "2022-11-01T00:00:00Z", "sourceInfo": "sourceInfo", "summary": "packageSummary", "supplier": "Person: supplierName (some@mail.com)", - "validUntilDate": "2022-12-03T00:00:00Z", + "validUntilDate": "2022-11-03T00:00:00Z", "versionInfo": "12.2" } ], diff --git a/tests/spdx/writer/tagvalue/test_annotation_writer.py b/tests/spdx/writer/tagvalue/test_annotation_writer.py index 1af76c342..5b36f5c32 100644 --- a/tests/spdx/writer/tagvalue/test_annotation_writer.py +++ b/tests/spdx/writer/tagvalue/test_annotation_writer.py @@ -20,7 +20,7 @@ def test_annotation_writer(): handle.write.assert_has_calls( [ call(f"Annotator: Person: {annotation.annotator.name} ({annotation.annotator.email})\n"), - call("AnnotationDate: 2022-12-01T00:00:00Z\n"), + call("AnnotationDate: 2022-12-24T00:00:00Z\n"), call(f"AnnotationType: {annotation.annotation_type.name}\n"), call(f"SPDXREF: {annotation.spdx_id}\n"), call(f"AnnotationComment: {annotation.annotation_comment}\n"), diff --git a/tests/spdx/writer/tagvalue/test_package_writer.py b/tests/spdx/writer/tagvalue/test_package_writer.py index 38873984a..958ff9931 100644 --- a/tests/spdx/writer/tagvalue/test_package_writer.py +++ b/tests/spdx/writer/tagvalue/test_package_writer.py @@ -49,8 +49,8 @@ def test_package_writer(): call(f"ExternalRefComment: {package.external_references[0].comment}\n"), call(f"PackageAttributionText: {package.attribution_texts[0]}\n"), call(f"PrimaryPackagePurpose: {package.primary_package_purpose.name}\n"), - call("ReleaseDate: 2022-12-01T00:00:00Z\n"), - call("BuiltDate: 2022-12-02T00:00:00Z\n"), - call("ValidUntilDate: 2022-12-03T00:00:00Z\n"), + call("ReleaseDate: 2022-11-01T00:00:00Z\n"), + call("BuiltDate: 2022-11-02T00:00:00Z\n"), + call("ValidUntilDate: 2022-11-03T00:00:00Z\n"), ] )