diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b6c3d4780..baae2fa3f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -8,7 +8,7 @@ repos: name: Validating CITATION.cff using 'cffconvert' - repo: https://github.com/pycqa/isort - rev: 5.12.0 + rev: 6.0.1 hooks: - id: isort name: Sorting Python import lines using 'isort' @@ -23,7 +23,7 @@ repos: name: Assessing the package metadata using 'pyroma' - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.0.278 + rev: v0.11.11 hooks: - id: ruff name: Linting using 'ruff' diff --git a/pyproject.toml b/pyproject.toml index 5b819f115..104c7e095 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -63,11 +63,11 @@ Repository = "https://github.com/citation-file-format/cffconvert" [project.optional-dependencies] dev = [ "build", - "isort == 5.12.0", + "isort == 6.0.1", "pre-commit", "prospector == 1.10.2", "pyroma == 4.2", - "ruff == 0.0.278" + "ruff == 0.11.11" ] gcloud = [ "flask" @@ -132,10 +132,10 @@ testpaths = [ [tool.ruff] line-length = 120 -select = ["E", "F", "W", "C901", "Q"] +lint.select = ["E", "F", "W", "C901", "Q"] # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # -[tool.ruff.flake8-quotes] +[tool.ruff.lint.flake8-quotes] docstring-quotes = "double" inline-quotes = "double" diff --git a/src/cffconvert/__init__.py b/src/cffconvert/__init__.py index 2087e10ec..ca61084dd 100644 --- a/src/cffconvert/__init__.py +++ b/src/cffconvert/__init__.py @@ -1,6 +1,4 @@ from cffconvert.lib.citation import Citation -__all__ = [ - "Citation" -] +__all__ = ["Citation"] diff --git a/src/cffconvert/cli/cli.py b/src/cffconvert/cli/cli.py index ab3e4b9be..5d40df236 100644 --- a/src/cffconvert/cli/cli.py +++ b/src/cffconvert/cli/cli.py @@ -10,60 +10,21 @@ "infile": { "type": click.Path(), "default": None, - "help": "Path to the CITATION.cff input file. If this option is omitted" + - f", '.{os.sep}CITATION.cff' is used." - }, - "outfile": { - "type": click.Path(), - "default": None, - "help": "Path to the output file." + "help": "Path to the CITATION.cff input file. If this option is omitted" + + f", '.{os.sep}CITATION.cff' is used.", }, + "outfile": {"type": click.Path(), "default": None, "help": "Path to the output file."}, "outputformat": { - "type": click.Choice([ - "apalike", - "bibtex", - "cff", - "codemeta", - "endnote", - "ris", - "schema.org", - "zenodo" - ]), - "default": None, - "help": "Output format." - }, - "url": { - "type": str, + "type": click.Choice(["apalike", "bibtex", "cff", "codemeta", "endnote", "ris", "schema.org", "zenodo"]), "default": None, - "help": "URL to the CITATION.cff input file." - }, - "show_help": { - "is_flag": True, - "flag_value": True, - "default": False, - "help": "Show help and exit." - }, - "show_trace": { - "is_flag": True, - "flag_value": True, - "default": False, - "help": "Show error trace." - }, - "validate_only": { - "is_flag": True, - "default": False, - "help": "Validate the CITATION.cff file and exit." - }, - "version": { - "is_flag": True, - "default": False, - "help": "Print version and exit." - }, - "verbose": { - "is_flag": True, - "default": False, - "help": "Control output verbosity." - } + "help": "Output format.", + }, + "url": {"type": str, "default": None, "help": "URL to the CITATION.cff input file."}, + "show_help": {"is_flag": True, "flag_value": True, "default": False, "help": "Show help and exit."}, + "show_trace": {"is_flag": True, "flag_value": True, "default": False, "help": "Show error trace."}, + "validate_only": {"is_flag": True, "default": False, "help": "Validate the CITATION.cff file and exit."}, + "version": {"is_flag": True, "default": False, "help": "Print version and exit."}, + "verbose": {"is_flag": True, "default": False, "help": "Control output verbosity."}, } epilog = """If this program is useful to you, consider giving it a star on GitHub: https://github.com/citation-file-format/cffconvert""" diff --git a/src/cffconvert/cli/constants.py b/src/cffconvert/cli/constants.py index 5f8522614..e64bf288a 100644 --- a/src/cffconvert/cli/constants.py +++ b/src/cffconvert/cli/constants.py @@ -1,3 +1 @@ -GITHUB_API_VERSION_HEADER = { - "X-GitHub-Api-Version": "2022-11-28" -} +GITHUB_API_VERSION_HEADER = {"X-GitHub-Api-Version": "2022-11-28"} diff --git a/src/cffconvert/cli/rawify_url.py b/src/cffconvert/cli/rawify_url.py index e40d4e73d..48b10b840 100644 --- a/src/cffconvert/cli/rawify_url.py +++ b/src/cffconvert/cli/rawify_url.py @@ -20,7 +20,7 @@ def rawify_url(url): # Proceed with making the call without authenticating -- stricter rate limits apply pass else: - headers.update({"Authorization": f"Bearer { token }"}) + headers.update({"Authorization": f"Bearer {token}"}) try: response = requests.get(repos_api, headers=headers, timeout=10) diff --git a/src/cffconvert/cli/read_from_url.py b/src/cffconvert/cli/read_from_url.py index e481986f5..2fc558833 100644 --- a/src/cffconvert/cli/read_from_url.py +++ b/src/cffconvert/cli/read_from_url.py @@ -15,7 +15,7 @@ def read_from_url(url): # Proceed with making the call without authenticating -- stricter rate limits apply pass else: - headers.update({"Authorization": f"Bearer { token }"}) + headers.update({"Authorization": f"Bearer {token}"}) response = requests.get(url_raw, headers=headers, timeout=30) if response.ok: return response.text diff --git a/src/cffconvert/cli/validate_or_write_output.py b/src/cffconvert/cli/validate_or_write_output.py index d437e39ef..a4b219ec3 100644 --- a/src/cffconvert/cli/validate_or_write_output.py +++ b/src/cffconvert/cli/validate_or_write_output.py @@ -32,7 +32,7 @@ def validate_or_write_output(outfile, outputformat, validate_only, citation, ver "endnote": citation.as_endnote, "ris": citation.as_ris, "schema.org": citation.as_schemaorg, - "zenodo": citation.as_zenodo + "zenodo": citation.as_zenodo, }[outputformat]() if outfile is None: print(outstr, end="") diff --git a/src/cffconvert/gcloud/gcloud.py b/src/cffconvert/gcloud/gcloud.py index e326f1c5e..84a98bd66 100644 --- a/src/cffconvert/gcloud/gcloud.py +++ b/src/cffconvert/gcloud/gcloud.py @@ -77,7 +77,7 @@ def cffconvert(request): "endnote": citation.as_endnote, "ris": citation.as_ris, "schema.org": citation.as_schemaorg, - "zenodo": citation.as_zenodo + "zenodo": citation.as_zenodo, }[outputformat]() return Response(outstr, mimetype=mimetype_plain) diff --git a/src/cffconvert/lib/cff_1_0_x/apalike.py b/src/cffconvert/lib/cff_1_0_x/apalike.py index c8a976066..55ba22a81 100644 --- a/src/cffconvert/lib/cff_1_0_x/apalike.py +++ b/src/cffconvert/lib/cff_1_0_x/apalike.py @@ -4,12 +4,7 @@ class ApalikeObject(Shared): - - supported_cff_versions = [ - "1.0.1", - "1.0.2", - "1.0.3" - ] + supported_cff_versions = ["1.0.1", "1.0.2", "1.0.3"] def add_author(self): authors_cff = self.cffobj.get("authors", []) diff --git a/src/cffconvert/lib/cff_1_0_x/bibtex.py b/src/cffconvert/lib/cff_1_0_x/bibtex.py index 1381ed811..34b8da6da 100644 --- a/src/cffconvert/lib/cff_1_0_x/bibtex.py +++ b/src/cffconvert/lib/cff_1_0_x/bibtex.py @@ -4,12 +4,7 @@ class BibtexObject(Shared): - - supported_cff_versions = [ - "1.0.1", - "1.0.2", - "1.0.3" - ] + supported_cff_versions = ["1.0.1", "1.0.2", "1.0.3"] def add_author(self): authors_cff = self.cffobj.get("authors", []) diff --git a/src/cffconvert/lib/cff_1_0_x/citation.py b/src/cffconvert/lib/cff_1_0_x/citation.py index dada54502..d4edf8688 100644 --- a/src/cffconvert/lib/cff_1_0_x/citation.py +++ b/src/cffconvert/lib/cff_1_0_x/citation.py @@ -15,12 +15,7 @@ class Citation_1_0_x(Contract): # noqa - - supported_cff_versions = [ - "1.0.1", - "1.0.2", - "1.0.3" - ] + supported_cff_versions = ["1.0.1", "1.0.2", "1.0.3"] def __init__(self, cffstr, cffversion): self.cffstr = cffstr diff --git a/src/cffconvert/lib/cff_1_0_x/codemeta.py b/src/cffconvert/lib/cff_1_0_x/codemeta.py index 34c6e00f0..c7f462a4e 100644 --- a/src/cffconvert/lib/cff_1_0_x/codemeta.py +++ b/src/cffconvert/lib/cff_1_0_x/codemeta.py @@ -2,6 +2,5 @@ class CodemetaObject(SchemaorgObject): - def __init__(self, cffobj, context="https://doi.org/10.5063/schema/codemeta-2.0", initialize_empty=False): super().__init__(cffobj, context=context, initialize_empty=initialize_empty) diff --git a/src/cffconvert/lib/cff_1_0_x/endnote.py b/src/cffconvert/lib/cff_1_0_x/endnote.py index 40764bb33..fcafb4c7b 100644 --- a/src/cffconvert/lib/cff_1_0_x/endnote.py +++ b/src/cffconvert/lib/cff_1_0_x/endnote.py @@ -4,12 +4,7 @@ class EndnoteObject(Shared): - - supported_cff_versions = [ - "1.0.1", - "1.0.2", - "1.0.3" - ] + supported_cff_versions = ["1.0.1", "1.0.2", "1.0.3"] def add_author(self): authors_cff = self.cffobj.get("authors", []) diff --git a/src/cffconvert/lib/cff_1_0_x/ris.py b/src/cffconvert/lib/cff_1_0_x/ris.py index 146ff4f9e..69603c674 100644 --- a/src/cffconvert/lib/cff_1_0_x/ris.py +++ b/src/cffconvert/lib/cff_1_0_x/ris.py @@ -4,12 +4,7 @@ class RisObject(Shared): - - supported_cff_versions = [ - "1.0.1", - "1.0.2", - "1.0.3" - ] + supported_cff_versions = ["1.0.1", "1.0.2", "1.0.3"] def add_author(self): authors_cff = self.cffobj.get("authors", []) diff --git a/src/cffconvert/lib/cff_1_0_x/schemaorg.py b/src/cffconvert/lib/cff_1_0_x/schemaorg.py index 4c39b38db..e8d1eb31e 100644 --- a/src/cffconvert/lib/cff_1_0_x/schemaorg.py +++ b/src/cffconvert/lib/cff_1_0_x/schemaorg.py @@ -4,12 +4,7 @@ class SchemaorgObject(Shared): - - supported_cff_versions = [ - "1.0.1", - "1.0.2", - "1.0.3" - ] + supported_cff_versions = ["1.0.1", "1.0.2", "1.0.3"] def __init__(self, cffobj, context="https://schema.org", initialize_empty=False): super().__init__(cffobj) diff --git a/src/cffconvert/lib/cff_1_0_x/zenodo.py b/src/cffconvert/lib/cff_1_0_x/zenodo.py index fb85eb99e..0a318a939 100644 --- a/src/cffconvert/lib/cff_1_0_x/zenodo.py +++ b/src/cffconvert/lib/cff_1_0_x/zenodo.py @@ -3,12 +3,7 @@ class ZenodoObject(Shared): - - supported_cff_versions = [ - "1.0.1", - "1.0.2", - "1.0.3" - ] + supported_cff_versions = ["1.0.1", "1.0.2", "1.0.3"] def add_contributors(self): # contributors doesn't exist in CFF v1.0.x diff --git a/src/cffconvert/lib/cff_1_1_x/apalike.py b/src/cffconvert/lib/cff_1_1_x/apalike.py index 8f7e2ceaa..374558aa5 100644 --- a/src/cffconvert/lib/cff_1_1_x/apalike.py +++ b/src/cffconvert/lib/cff_1_1_x/apalike.py @@ -4,10 +4,7 @@ class ApalikeObject(Shared): - - supported_cff_versions = [ - "1.1.0" - ] + supported_cff_versions = ["1.1.0"] def add_author(self): authors_cff = self.cffobj.get("authors", []) diff --git a/src/cffconvert/lib/cff_1_1_x/bibtex.py b/src/cffconvert/lib/cff_1_1_x/bibtex.py index 74fcb10a8..ba639104d 100644 --- a/src/cffconvert/lib/cff_1_1_x/bibtex.py +++ b/src/cffconvert/lib/cff_1_1_x/bibtex.py @@ -4,10 +4,7 @@ class BibtexObject(Shared): - - supported_cff_versions = [ - "1.1.0" - ] + supported_cff_versions = ["1.1.0"] def add_author(self): authors_cff = self.cffobj.get("authors", []) diff --git a/src/cffconvert/lib/cff_1_1_x/citation.py b/src/cffconvert/lib/cff_1_1_x/citation.py index 5e1551094..5b15a7cb6 100644 --- a/src/cffconvert/lib/cff_1_1_x/citation.py +++ b/src/cffconvert/lib/cff_1_1_x/citation.py @@ -15,10 +15,7 @@ class Citation_1_1_x(Contract): # noqa - - supported_cff_versions = [ - "1.1.0" - ] + supported_cff_versions = ["1.1.0"] def __init__(self, cffstr, cffversion): self.cffstr = cffstr diff --git a/src/cffconvert/lib/cff_1_1_x/codemeta.py b/src/cffconvert/lib/cff_1_1_x/codemeta.py index cdd1db9bf..82065a541 100644 --- a/src/cffconvert/lib/cff_1_1_x/codemeta.py +++ b/src/cffconvert/lib/cff_1_1_x/codemeta.py @@ -2,6 +2,5 @@ class CodemetaObject(SchemaorgObject): - def __init__(self, cffobj, context="https://doi.org/10.5063/schema/codemeta-2.0", initialize_empty=False): super().__init__(cffobj, context=context, initialize_empty=initialize_empty) diff --git a/src/cffconvert/lib/cff_1_1_x/endnote.py b/src/cffconvert/lib/cff_1_1_x/endnote.py index a89af42ac..546c546aa 100644 --- a/src/cffconvert/lib/cff_1_1_x/endnote.py +++ b/src/cffconvert/lib/cff_1_1_x/endnote.py @@ -4,10 +4,7 @@ class EndnoteObject(Shared): - - supported_cff_versions = [ - "1.1.0" - ] + supported_cff_versions = ["1.1.0"] def add_author(self): authors_cff = self.cffobj.get("authors", []) diff --git a/src/cffconvert/lib/cff_1_1_x/ris.py b/src/cffconvert/lib/cff_1_1_x/ris.py index be4539765..a52f008c8 100644 --- a/src/cffconvert/lib/cff_1_1_x/ris.py +++ b/src/cffconvert/lib/cff_1_1_x/ris.py @@ -4,10 +4,7 @@ class RisObject(Shared): - - supported_cff_versions = [ - "1.1.0" - ] + supported_cff_versions = ["1.1.0"] def add_author(self): authors_cff = self.cffobj.get("authors", []) diff --git a/src/cffconvert/lib/cff_1_1_x/schemaorg.py b/src/cffconvert/lib/cff_1_1_x/schemaorg.py index 2bd1d2785..462a13d0f 100644 --- a/src/cffconvert/lib/cff_1_1_x/schemaorg.py +++ b/src/cffconvert/lib/cff_1_1_x/schemaorg.py @@ -4,10 +4,7 @@ class SchemaorgObject(Shared): - - supported_cff_versions = [ - "1.1.0" - ] + supported_cff_versions = ["1.1.0"] def __init__(self, cffobj, context="https://schema.org", initialize_empty=False): super().__init__(cffobj) diff --git a/src/cffconvert/lib/cff_1_1_x/zenodo.py b/src/cffconvert/lib/cff_1_1_x/zenodo.py index e628b54c8..386696d40 100644 --- a/src/cffconvert/lib/cff_1_1_x/zenodo.py +++ b/src/cffconvert/lib/cff_1_1_x/zenodo.py @@ -3,10 +3,7 @@ class ZenodoObject(Shared): - - supported_cff_versions = [ - "1.1.0" - ] + supported_cff_versions = ["1.1.0"] def add_contributors(self): # contributors doesn't exist in CFF v1.1.x diff --git a/src/cffconvert/lib/cff_1_2_x/apalike.py b/src/cffconvert/lib/cff_1_2_x/apalike.py index f6748e157..a6cbab47e 100644 --- a/src/cffconvert/lib/cff_1_2_x/apalike.py +++ b/src/cffconvert/lib/cff_1_2_x/apalike.py @@ -4,10 +4,7 @@ class ApalikeObject(Shared): - - supported_cff_versions = [ - "1.2.0" - ] + supported_cff_versions = ["1.2.0"] def add_author(self): authors_cff = self.cffobj.get("authors", []) diff --git a/src/cffconvert/lib/cff_1_2_x/bibtex.py b/src/cffconvert/lib/cff_1_2_x/bibtex.py index d278f4b15..443ad06a2 100644 --- a/src/cffconvert/lib/cff_1_2_x/bibtex.py +++ b/src/cffconvert/lib/cff_1_2_x/bibtex.py @@ -4,10 +4,7 @@ class BibtexObject(Shared): - - supported_cff_versions = [ - "1.2.0" - ] + supported_cff_versions = ["1.2.0"] def add_author(self): authors_cff = self.cffobj.get("authors", []) diff --git a/src/cffconvert/lib/cff_1_2_x/citation.py b/src/cffconvert/lib/cff_1_2_x/citation.py index 9d46e51be..873026324 100644 --- a/src/cffconvert/lib/cff_1_2_x/citation.py +++ b/src/cffconvert/lib/cff_1_2_x/citation.py @@ -17,10 +17,7 @@ class Citation_1_2_x(Contract): # noqa - - supported_cff_versions = [ - "1.2.0" - ] + supported_cff_versions = ["1.2.0"] def __init__(self, cffstr, cffversion): self.cffstr = cffstr @@ -86,12 +83,9 @@ def validate(self, verbose=True): n_lines_max = 15 is_long = len(error_lines) > n_lines_max if is_long and not verbose: - truncated_message = "\n".join([ - *error_lines[:n_lines_max], - "", - "...truncated output...", - "Add --verbose flag for full output." - ]) + truncated_message = "\n".join( + [*error_lines[:n_lines_max], "", "...truncated output...", "Add --verbose flag for full output."] + ) # pylint:disable = raise-missing-from raise ValidationError(truncated_message) raise diff --git a/src/cffconvert/lib/cff_1_2_x/codemeta.py b/src/cffconvert/lib/cff_1_2_x/codemeta.py index 6c137df7f..56c3202f2 100644 --- a/src/cffconvert/lib/cff_1_2_x/codemeta.py +++ b/src/cffconvert/lib/cff_1_2_x/codemeta.py @@ -2,6 +2,5 @@ class CodemetaObject(SchemaorgObject): - def __init__(self, cffobj, context="https://doi.org/10.5063/schema/codemeta-2.0", initialize_empty=False): super().__init__(cffobj, context=context, initialize_empty=initialize_empty) diff --git a/src/cffconvert/lib/cff_1_2_x/endnote.py b/src/cffconvert/lib/cff_1_2_x/endnote.py index c0436e579..3c3f65cf2 100644 --- a/src/cffconvert/lib/cff_1_2_x/endnote.py +++ b/src/cffconvert/lib/cff_1_2_x/endnote.py @@ -4,10 +4,7 @@ class EndnoteObject(Shared): - - supported_cff_versions = [ - "1.2.0" - ] + supported_cff_versions = ["1.2.0"] def add_author(self): authors_cff = self.cffobj.get("authors", []) diff --git a/src/cffconvert/lib/cff_1_2_x/ris.py b/src/cffconvert/lib/cff_1_2_x/ris.py index 08d6a603a..00f8a12a2 100644 --- a/src/cffconvert/lib/cff_1_2_x/ris.py +++ b/src/cffconvert/lib/cff_1_2_x/ris.py @@ -4,10 +4,7 @@ class RisObject(Shared): - - supported_cff_versions = [ - "1.2.0" - ] + supported_cff_versions = ["1.2.0"] def add_author(self): authors_cff = self.cffobj.get("authors", []) diff --git a/src/cffconvert/lib/cff_1_2_x/schemaorg.py b/src/cffconvert/lib/cff_1_2_x/schemaorg.py index ff3c04097..1deb8c431 100644 --- a/src/cffconvert/lib/cff_1_2_x/schemaorg.py +++ b/src/cffconvert/lib/cff_1_2_x/schemaorg.py @@ -4,10 +4,7 @@ class SchemaorgObject(Shared): - - supported_cff_versions = [ - "1.2.0" - ] + supported_cff_versions = ["1.2.0"] def __init__(self, cffobj, context="https://schema.org", initialize_empty=False): super().__init__(cffobj) diff --git a/src/cffconvert/lib/cff_1_2_x/zenodo.py b/src/cffconvert/lib/cff_1_2_x/zenodo.py index 49dcf2185..736759a1f 100644 --- a/src/cffconvert/lib/cff_1_2_x/zenodo.py +++ b/src/cffconvert/lib/cff_1_2_x/zenodo.py @@ -3,10 +3,7 @@ class ZenodoObject(Shared): - - supported_cff_versions = [ - "1.2.0" - ] + supported_cff_versions = ["1.2.0"] def add_contributors(self): # contributors doesn't exist in CFF v1.2.x diff --git a/src/cffconvert/lib/cff_1_3_x/apalike.py b/src/cffconvert/lib/cff_1_3_x/apalike.py index ccaa5610d..fadfaec82 100644 --- a/src/cffconvert/lib/cff_1_3_x/apalike.py +++ b/src/cffconvert/lib/cff_1_3_x/apalike.py @@ -4,10 +4,7 @@ class ApalikeObject(Shared): - - supported_cff_versions = [ - "1.3.0" - ] + supported_cff_versions = ["1.3.0"] def add_author(self): authors_cff = self.cffobj.get("authors", []) diff --git a/src/cffconvert/lib/cff_1_3_x/bibtex.py b/src/cffconvert/lib/cff_1_3_x/bibtex.py index 9ff7f91d9..97521c1fc 100644 --- a/src/cffconvert/lib/cff_1_3_x/bibtex.py +++ b/src/cffconvert/lib/cff_1_3_x/bibtex.py @@ -4,10 +4,7 @@ class BibtexObject(Shared): - - supported_cff_versions = [ - "1.3.0" - ] + supported_cff_versions = ["1.3.0"] def add_author(self): authors_cff = self.cffobj.get("authors", []) diff --git a/src/cffconvert/lib/cff_1_3_x/citation.py b/src/cffconvert/lib/cff_1_3_x/citation.py index 34eab2a94..e863bccba 100644 --- a/src/cffconvert/lib/cff_1_3_x/citation.py +++ b/src/cffconvert/lib/cff_1_3_x/citation.py @@ -17,10 +17,7 @@ class Citation_1_3_x(Contract): # noqa - - supported_cff_versions = [ - "1.3.0" - ] + supported_cff_versions = ["1.3.0"] def __init__(self, cffstr, cffversion): self.cffstr = cffstr @@ -86,12 +83,9 @@ def validate(self, verbose=True): n_lines_max = 15 is_long = len(error_lines) > n_lines_max if is_long and not verbose: - truncated_message = "\n".join([ - *error_lines[:n_lines_max], - "", - "...truncated output...", - "Add --verbose flag for full output." - ]) + truncated_message = "\n".join( + [*error_lines[:n_lines_max], "", "...truncated output...", "Add --verbose flag for full output."] + ) # pylint:disable = raise-missing-from raise ValidationError(truncated_message) raise diff --git a/src/cffconvert/lib/cff_1_3_x/codemeta.py b/src/cffconvert/lib/cff_1_3_x/codemeta.py index d1b6a8040..28a7973d0 100644 --- a/src/cffconvert/lib/cff_1_3_x/codemeta.py +++ b/src/cffconvert/lib/cff_1_3_x/codemeta.py @@ -2,6 +2,5 @@ class CodemetaObject(SchemaorgObject): - def __init__(self, cffobj, context="https://doi.org/10.5063/schema/codemeta-2.0", initialize_empty=False): super().__init__(cffobj, context=context, initialize_empty=initialize_empty) diff --git a/src/cffconvert/lib/cff_1_3_x/endnote.py b/src/cffconvert/lib/cff_1_3_x/endnote.py index 5ac619c6f..7d61ed7da 100644 --- a/src/cffconvert/lib/cff_1_3_x/endnote.py +++ b/src/cffconvert/lib/cff_1_3_x/endnote.py @@ -4,10 +4,7 @@ class EndnoteObject(Shared): - - supported_cff_versions = [ - "1.3.0" - ] + supported_cff_versions = ["1.3.0"] def add_author(self): authors_cff = self.cffobj.get("authors", []) diff --git a/src/cffconvert/lib/cff_1_3_x/ris.py b/src/cffconvert/lib/cff_1_3_x/ris.py index 7cdb5b8a7..a35a5aef7 100644 --- a/src/cffconvert/lib/cff_1_3_x/ris.py +++ b/src/cffconvert/lib/cff_1_3_x/ris.py @@ -4,10 +4,7 @@ class RisObject(Shared): - - supported_cff_versions = [ - "1.3.0" - ] + supported_cff_versions = ["1.3.0"] def add_author(self): authors_cff = self.cffobj.get("authors", []) diff --git a/src/cffconvert/lib/cff_1_3_x/schemaorg.py b/src/cffconvert/lib/cff_1_3_x/schemaorg.py index c7907f9f0..9f9b0a76f 100644 --- a/src/cffconvert/lib/cff_1_3_x/schemaorg.py +++ b/src/cffconvert/lib/cff_1_3_x/schemaorg.py @@ -5,10 +5,7 @@ # pylint: disable=too-many-instance-attributes class SchemaorgObject(Shared): - - supported_cff_versions = [ - "1.3.0" - ] + supported_cff_versions = ["1.3.0"] def __init__(self, cffobj, context="https://schema.org", initialize_empty=False): super().__init__(cffobj) diff --git a/src/cffconvert/lib/cff_1_3_x/zenodo.py b/src/cffconvert/lib/cff_1_3_x/zenodo.py index 808ba1de3..a808dd53d 100644 --- a/src/cffconvert/lib/cff_1_3_x/zenodo.py +++ b/src/cffconvert/lib/cff_1_3_x/zenodo.py @@ -3,10 +3,7 @@ class ZenodoObject(Shared): - - supported_cff_versions = [ - "1.3.0" - ] + supported_cff_versions = ["1.3.0"] def add_contributors(self): contributors = [] diff --git a/src/cffconvert/lib/cff_1_x_x/apalike.py b/src/cffconvert/lib/cff_1_x_x/apalike.py index dbf2b7610..f802997d0 100644 --- a/src/cffconvert/lib/cff_1_x_x/apalike.py +++ b/src/cffconvert/lib/cff_1_x_x/apalike.py @@ -14,7 +14,6 @@ class ApalikeObjectShared: - supported_cff_versions = None def __init__(self, cffobj, initialize_empty=False): @@ -33,21 +32,13 @@ def __init__(self, cffobj, initialize_empty=False): self.add_all() def __str__(self): - items = [item for item in [self.author, - self.year, - self.title, - self.version, - self.doi, - self.url] if item is not None] + items = [ + item for item in [self.author, self.year, self.title, self.version, self.doi, self.url] if item is not None + ] return " ".join(items) + "\n" def add_all(self): - self.add_author() \ - .add_year() \ - .add_title() \ - .add_version() \ - .add_doi() \ - .add_url() + self.add_author().add_year().add_title().add_version().add_doi().add_url() return self @abstractmethod diff --git a/src/cffconvert/lib/cff_1_x_x/authors/apalike.py b/src/cffconvert/lib/cff_1_x_x/authors/apalike.py index 4a885d1be..a3d7ae64d 100644 --- a/src/cffconvert/lib/cff_1_x_x/authors/apalike.py +++ b/src/cffconvert/lib/cff_1_x_x/authors/apalike.py @@ -3,7 +3,6 @@ # pylint: disable=too-few-public-methods class ApalikeAuthor(BaseAuthor): - def __init__(self, author): super().__init__(author) self._behaviors = { @@ -134,7 +133,7 @@ def __init__(self, author): "_____OE": ApalikeAuthor._from_thin_air, "_____O_": ApalikeAuthor._from_thin_air, "______E": ApalikeAuthor._from_thin_air, - "_______": ApalikeAuthor._from_thin_air + "_______": ApalikeAuthor._from_thin_air, } def _from_alias(self): diff --git a/src/cffconvert/lib/cff_1_x_x/authors/base.py b/src/cffconvert/lib/cff_1_x_x/authors/base.py index ba65b8e2d..9de9d4e62 100644 --- a/src/cffconvert/lib/cff_1_x_x/authors/base.py +++ b/src/cffconvert/lib/cff_1_x_x/authors/base.py @@ -3,7 +3,6 @@ # pylint: disable=too-few-public-methods class BaseAuthor(ABC): - def __init__(self, author): self._author = author self._behaviors = None @@ -16,20 +15,22 @@ def _get_full_last_name(self): nameparts = [ self._author.get("name-particle"), self._author.get("family-names"), - self._author.get("name-suffix") + self._author.get("name-suffix"), ] return " ".join([n for n in nameparts if n is not None]) def _get_key(self): - return "".join([ - self._has_given_name(), - self._has_family_name(), - self._has_alias(), - self._has_name(), - self._has_affiliation(), - self._has_orcid(), - self._has_email() - ]) + return "".join( + [ + self._has_given_name(), + self._has_family_name(), + self._has_alias(), + self._has_name(), + self._has_affiliation(), + self._has_orcid(), + self._has_email(), + ] + ) def _has_affiliation(self): value = self._author.get("affiliation", None) diff --git a/src/cffconvert/lib/cff_1_x_x/authors/bibtex.py b/src/cffconvert/lib/cff_1_x_x/authors/bibtex.py index ee9b8d833..4fbc43119 100644 --- a/src/cffconvert/lib/cff_1_x_x/authors/bibtex.py +++ b/src/cffconvert/lib/cff_1_x_x/authors/bibtex.py @@ -3,7 +3,6 @@ # pylint: disable=too-few-public-methods class BibtexAuthor(BaseAuthor): - def __init__(self, author): super().__init__(author) self._behaviors = { @@ -134,7 +133,7 @@ def __init__(self, author): "_____OE": BibtexAuthor._from_thin_air, "_____O_": BibtexAuthor._from_thin_air, "______E": BibtexAuthor._from_thin_air, - "_______": BibtexAuthor._from_thin_air + "_______": BibtexAuthor._from_thin_air, } def _from_alias(self): @@ -150,7 +149,7 @@ def _from_last(self): nameparts = [ self._author.get("name-particle"), self._author.get("family-names"), - self._author.get("name-suffix") + self._author.get("name-suffix"), ] return " ".join([n for n in nameparts if n is not None]) diff --git a/src/cffconvert/lib/cff_1_x_x/authors/endnote.py b/src/cffconvert/lib/cff_1_x_x/authors/endnote.py index f80bfdcdf..6e625d0ae 100644 --- a/src/cffconvert/lib/cff_1_x_x/authors/endnote.py +++ b/src/cffconvert/lib/cff_1_x_x/authors/endnote.py @@ -3,7 +3,6 @@ # pylint: disable=too-few-public-methods class EndnoteAuthor(BaseAuthor): - def __init__(self, author): super().__init__(author) self._behaviors = { diff --git a/src/cffconvert/lib/cff_1_x_x/authors/ris.py b/src/cffconvert/lib/cff_1_x_x/authors/ris.py index d019d83c8..8223e4fb7 100644 --- a/src/cffconvert/lib/cff_1_x_x/authors/ris.py +++ b/src/cffconvert/lib/cff_1_x_x/authors/ris.py @@ -3,7 +3,6 @@ # pylint: disable=too-few-public-methods class RisAuthor(BaseAuthor): - def __init__(self, author): super().__init__(author) self._behaviors = { @@ -134,23 +133,23 @@ def __init__(self, author): "_____OE": RisAuthor._from_thin_air, "_____O_": RisAuthor._from_thin_air, "______E": RisAuthor._from_thin_air, - "_______": RisAuthor._from_thin_air + "_______": RisAuthor._from_thin_air, } def _from_alias(self): - return f"AU - { self._author.get('alias') }\n" + return f"AU - {self._author.get('alias')}\n" def _from_given_and_last(self): - return f"AU - { self._get_full_last_name() }, { self._author.get('given-names') }\n" + return f"AU - {self._get_full_last_name()}, {self._author.get('given-names')}\n" def _from_given(self): - return f"AU - { self._author.get('given-names') }\n" + return f"AU - {self._author.get('given-names')}\n" def _from_last(self): - return f"AU - { self._get_full_last_name() }\n" + return f"AU - {self._get_full_last_name()}\n" def _from_name(self): - return f"AU - { self._author.get('name') }\n" + return f"AU - {self._author.get('name')}\n" def as_string(self): key = self._get_key() diff --git a/src/cffconvert/lib/cff_1_x_x/authors/schemaorg.py b/src/cffconvert/lib/cff_1_x_x/authors/schemaorg.py index bd423f131..26f037815 100644 --- a/src/cffconvert/lib/cff_1_x_x/authors/schemaorg.py +++ b/src/cffconvert/lib/cff_1_x_x/authors/schemaorg.py @@ -3,7 +3,6 @@ # pylint: disable=too-few-public-methods class SchemaorgAuthor(BaseAuthor): - def __init__(self, author): super().__init__(author) self._behaviors = { @@ -134,58 +133,42 @@ def __init__(self, author): "_____OE": self._from_orcid_and_email, "_____O_": self._from_orcid, "______E": self._from_email, - "_______": SchemaorgAuthor._from_thin_air + "_______": SchemaorgAuthor._from_thin_air, } def _from_affiliation_and_email(self): return { "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": self._author.get("affiliation") - }, - "email": self._author.get("email") + "affiliation": {"@type": "Organization", "name": self._author.get("affiliation")}, + "email": self._author.get("email"), } def _from_affiliation_and_orcid_and_email(self): return { "@id": self._author.get("orcid"), "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": self._author.get("affiliation") - }, - "email": self._author.get("email") + "affiliation": {"@type": "Organization", "name": self._author.get("affiliation")}, + "email": self._author.get("email"), } def _from_alias_and_email(self): - return { - "@type": "Person", - "alternateName": self._author.get("alias"), - "email": self._author.get("email") - } + return {"@type": "Person", "alternateName": self._author.get("alias"), "email": self._author.get("email")} def _from_alias_and_affiliation_and_email(self): return { "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": self._author.get("affiliation") - }, + "affiliation": {"@type": "Organization", "name": self._author.get("affiliation")}, "alternateName": self._author.get("alias"), - "email": self._author.get("email") + "email": self._author.get("email"), } def _from_alias_and_affiliation_and_orcid_and_email(self): return { "@id": self._author.get("orcid"), "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": self._author.get("affiliation") - }, + "affiliation": {"@type": "Organization", "name": self._author.get("affiliation")}, "alternateName": self._author.get("alias"), - "email": self._author.get("email") + "email": self._author.get("email"), } def _from_alias_and_name_and_orcid_and_email(self): @@ -194,7 +177,7 @@ def _from_alias_and_name_and_orcid_and_email(self): "@type": "Organization", "alternateName": self._author.get("alias"), "name": self._author.get("name"), - "email": self._author.get("email") + "email": self._author.get("email"), } def _from_alias_and_name_and_email(self): @@ -202,7 +185,7 @@ def _from_alias_and_name_and_email(self): "@type": "Organization", "alternateName": self._author.get("alias"), "name": self._author.get("name"), - "email": self._author.get("email") + "email": self._author.get("email"), } def _from_alias_and_orcid_and_email(self): @@ -210,43 +193,30 @@ def _from_alias_and_orcid_and_email(self): "@id": self._author.get("orcid"), "@type": "Person", "alternateName": self._author.get("alias"), - "email": self._author.get("email") + "email": self._author.get("email"), } def _from_email(self): - return { - "@type": "Person", - "email": self._author.get("email") - } + return {"@type": "Person", "email": self._author.get("email")} def _from_given_and_email(self): - return { - "@type": "Person", - "givenName": self._author.get("given-names"), - "email": self._author.get("email") - } + return {"@type": "Person", "givenName": self._author.get("given-names"), "email": self._author.get("email")} def _from_given_and_affiliation_and_email(self): return { "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": self._author.get("affiliation") - }, + "affiliation": {"@type": "Organization", "name": self._author.get("affiliation")}, "givenName": self._author.get("given-names"), - "email": self._author.get("email") + "email": self._author.get("email"), } def _from_given_and_affiliation_and_orcid_and_email(self): return { "@id": self._author.get("orcid"), "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": self._author.get("affiliation") - }, + "affiliation": {"@type": "Organization", "name": self._author.get("affiliation")}, "givenName": self._author.get("given-names"), - "email": self._author.get("email") + "email": self._author.get("email"), } def _from_given_and_alias_and_email(self): @@ -254,32 +224,26 @@ def _from_given_and_alias_and_email(self): "@type": "Person", "alternateName": self._author.get("alias"), "givenName": self._author.get("given-names"), - "email": self._author.get("email") + "email": self._author.get("email"), } def _from_given_and_alias_and_affiliation_and_email(self): return { "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": self._author.get("affiliation") - }, + "affiliation": {"@type": "Organization", "name": self._author.get("affiliation")}, "alternateName": self._author.get("alias"), "givenName": self._author.get("given-names"), - "email": self._author.get("email") + "email": self._author.get("email"), } def _from_given_and_alias_and_affiliation_and_orcid_and_email(self): return { "@id": self._author.get("orcid"), "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": self._author.get("affiliation") - }, + "affiliation": {"@type": "Organization", "name": self._author.get("affiliation")}, "alternateName": self._author.get("alias"), "givenName": self._author.get("given-names"), - "email": self._author.get("email") + "email": self._author.get("email"), } def _from_given_and_alias_and_orcid_and_email(self): @@ -288,7 +252,7 @@ def _from_given_and_alias_and_orcid_and_email(self): "@type": "Person", "alternateName": self._author.get("alias"), "givenName": self._author.get("given-names"), - "email": self._author.get("email") + "email": self._author.get("email"), } def _from_given_and_last_and_email(self): @@ -296,32 +260,26 @@ def _from_given_and_last_and_email(self): "@type": "Person", "familyName": self._get_full_last_name(), "givenName": self._author.get("given-names"), - "email": self._author.get("email") + "email": self._author.get("email"), } def _from_given_and_last_and_affiliation_and_email(self): return { "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": self._author.get("affiliation") - }, + "affiliation": {"@type": "Organization", "name": self._author.get("affiliation")}, "familyName": self._get_full_last_name(), "givenName": self._author.get("given-names"), - "email": self._author.get("email") + "email": self._author.get("email"), } def _from_given_and_last_and_affiliation_and_orcid_and_email(self): return { "@id": self._author.get("orcid"), "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": self._author.get("affiliation") - }, + "affiliation": {"@type": "Organization", "name": self._author.get("affiliation")}, "familyName": self._get_full_last_name(), "givenName": self._author.get("given-names"), - "email": self._author.get("email") + "email": self._author.get("email"), } def _from_given_and_last_and_alias_and_email(self): @@ -330,34 +288,28 @@ def _from_given_and_last_and_alias_and_email(self): "alternateName": self._author.get("alias"), "familyName": self._get_full_last_name(), "givenName": self._author.get("given-names"), - "email": self._author.get("email") + "email": self._author.get("email"), } def _from_given_and_last_and_alias_and_affiliation_and_email(self): return { "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": self._author.get("affiliation") - }, + "affiliation": {"@type": "Organization", "name": self._author.get("affiliation")}, "alternateName": self._author.get("alias"), "familyName": self._get_full_last_name(), "givenName": self._author.get("given-names"), - "email": self._author.get("email") + "email": self._author.get("email"), } def _from_given_and_last_and_alias_and_affiliation_and_orcid_and_email(self): return { "@id": self._author.get("orcid"), "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": self._author.get("affiliation") - }, + "affiliation": {"@type": "Organization", "name": self._author.get("affiliation")}, "alternateName": self._author.get("alias"), "familyName": self._get_full_last_name(), "givenName": self._author.get("given-names"), - "email": self._author.get("email") + "email": self._author.get("email"), } def _from_given_and_last_and_alias_and_orcid_and_email(self): @@ -367,7 +319,7 @@ def _from_given_and_last_and_alias_and_orcid_and_email(self): "alternateName": self._author.get("alias"), "familyName": self._get_full_last_name(), "givenName": self._author.get("given-names"), - "email": self._author.get("email") + "email": self._author.get("email"), } def _from_given_and_last_and_orcid_and_email(self): @@ -376,7 +328,7 @@ def _from_given_and_last_and_orcid_and_email(self): "@type": "Person", "familyName": self._get_full_last_name(), "givenName": self._author.get("given-names"), - "email": self._author.get("email") + "email": self._author.get("email"), } def _from_given_and_orcid_and_email(self): @@ -384,37 +336,27 @@ def _from_given_and_orcid_and_email(self): "@id": self._author.get("orcid"), "@type": "Person", "givenName": self._author.get("given-names"), - "email": self._author.get("email") + "email": self._author.get("email"), } def _from_last_and_email(self): - return { - "@type": "Person", - "familyName": self._get_full_last_name(), - "email": self._author.get("email") - } + return {"@type": "Person", "familyName": self._get_full_last_name(), "email": self._author.get("email")} def _from_last_and_affiliation_and_email(self): return { "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": self._author.get("affiliation") - }, + "affiliation": {"@type": "Organization", "name": self._author.get("affiliation")}, "familyName": self._get_full_last_name(), - "email": self._author.get("email") + "email": self._author.get("email"), } def _from_last_and_affiliation_and_orcid_and_email(self): return { "@id": self._author.get("orcid"), "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": self._author.get("affiliation") - }, + "affiliation": {"@type": "Organization", "name": self._author.get("affiliation")}, "familyName": self._get_full_last_name(), - "email": self._author.get("email") + "email": self._author.get("email"), } def _from_last_and_alias_and_email(self): @@ -422,32 +364,26 @@ def _from_last_and_alias_and_email(self): "@type": "Person", "alternateName": self._author.get("alias"), "familyName": self._get_full_last_name(), - "email": self._author.get("email") + "email": self._author.get("email"), } def _from_last_and_alias_and_affiliation_and_email(self): return { "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": self._author.get("affiliation") - }, + "affiliation": {"@type": "Organization", "name": self._author.get("affiliation")}, "alternateName": self._author.get("alias"), "familyName": self._get_full_last_name(), - "email": self._author.get("email") + "email": self._author.get("email"), } def _from_last_and_alias_and_affiliation_and_orcid_and_email(self): return { "@id": self._author.get("orcid"), "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": self._author.get("affiliation") - }, + "affiliation": {"@type": "Organization", "name": self._author.get("affiliation")}, "alternateName": self._author.get("alias"), "familyName": self._get_full_last_name(), - "email": self._author.get("email") + "email": self._author.get("email"), } def _from_last_and_alias_and_orcid_and_email(self): @@ -456,7 +392,7 @@ def _from_last_and_alias_and_orcid_and_email(self): "@type": "Person", "alternateName": self._author.get("alias"), "familyName": self._get_full_last_name(), - "email": self._author.get("email") + "email": self._author.get("email"), } def _from_last_and_orcid_and_email(self): @@ -464,63 +400,40 @@ def _from_last_and_orcid_and_email(self): "@id": self._author.get("orcid"), "@type": "Person", "familyName": self._get_full_last_name(), - "email": self._author.get("email") + "email": self._author.get("email"), } def _from_name_and_email(self): - return { - "@type": "Organization", - "name": self._author.get("name"), - "email": self._author.get("email") - } + return {"@type": "Organization", "name": self._author.get("name"), "email": self._author.get("email")} def _from_name_and_orcid_and_email(self): return { "@id": self._author.get("orcid"), "@type": "Organization", "name": self._author.get("name"), - "email": self._author.get("email") + "email": self._author.get("email"), } def _from_orcid_and_email(self): - return { - "@id": self._author.get("orcid"), - "@type": "Person", - "email": self._author.get("email") - } + return {"@id": self._author.get("orcid"), "@type": "Person", "email": self._author.get("email")} def _from_affiliation(self): - return { - "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": self._author.get("affiliation") - } - } + return {"@type": "Person", "affiliation": {"@type": "Organization", "name": self._author.get("affiliation")}} def _from_affiliation_and_orcid(self): return { "@id": self._author.get("orcid"), "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": self._author.get("affiliation") - } + "affiliation": {"@type": "Organization", "name": self._author.get("affiliation")}, } def _from_alias(self): - return { - "@type": "Person", - "alternateName": self._author.get("alias") - } + return {"@type": "Person", "alternateName": self._author.get("alias")} def _from_alias_and_affiliation(self): return { "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": self._author.get("affiliation") - }, + "affiliation": {"@type": "Organization", "name": self._author.get("affiliation")}, "alternateName": self._author.get("alias"), } @@ -528,10 +441,7 @@ def _from_alias_and_affiliation_and_orcid(self): return { "@id": self._author.get("orcid"), "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": self._author.get("affiliation") - }, + "affiliation": {"@type": "Organization", "name": self._author.get("affiliation")}, "alternateName": self._author.get("alias"), } @@ -540,78 +450,55 @@ def _from_alias_and_name_and_orcid(self): "@id": self._author.get("orcid"), "@type": "Organization", "alternateName": self._author.get("alias"), - "name": self._author.get("name") + "name": self._author.get("name"), } def _from_alias_and_name(self): - return { - "@type": "Organization", - "alternateName": self._author.get("alias"), - "name": self._author.get("name") - } + return {"@type": "Organization", "alternateName": self._author.get("alias"), "name": self._author.get("name")} def _from_alias_and_orcid(self): - return { - "@id": self._author.get("orcid"), - "@type": "Person", - "alternateName": self._author.get("alias") - } + return {"@id": self._author.get("orcid"), "@type": "Person", "alternateName": self._author.get("alias")} def _from_given(self): - return { - "@type": "Person", - "givenName": self._author.get("given-names") - } + return {"@type": "Person", "givenName": self._author.get("given-names")} def _from_given_and_affiliation(self): return { "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": self._author.get("affiliation") - }, - "givenName": self._author.get("given-names") + "affiliation": {"@type": "Organization", "name": self._author.get("affiliation")}, + "givenName": self._author.get("given-names"), } def _from_given_and_affiliation_and_orcid(self): return { "@id": self._author.get("orcid"), "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": self._author.get("affiliation") - }, - "givenName": self._author.get("given-names") + "affiliation": {"@type": "Organization", "name": self._author.get("affiliation")}, + "givenName": self._author.get("given-names"), } def _from_given_and_alias(self): return { "@type": "Person", "alternateName": self._author.get("alias"), - "givenName": self._author.get("given-names") + "givenName": self._author.get("given-names"), } def _from_given_and_alias_and_affiliation(self): return { "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": self._author.get("affiliation") - }, + "affiliation": {"@type": "Organization", "name": self._author.get("affiliation")}, "alternateName": self._author.get("alias"), - "givenName": self._author.get("given-names") + "givenName": self._author.get("given-names"), } def _from_given_and_alias_and_affiliation_and_orcid(self): return { "@id": self._author.get("orcid"), "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": self._author.get("affiliation") - }, + "affiliation": {"@type": "Organization", "name": self._author.get("affiliation")}, "alternateName": self._author.get("alias"), - "givenName": self._author.get("given-names") + "givenName": self._author.get("given-names"), } def _from_given_and_alias_and_orcid(self): @@ -619,37 +506,31 @@ def _from_given_and_alias_and_orcid(self): "@id": self._author.get("orcid"), "@type": "Person", "alternateName": self._author.get("alias"), - "givenName": self._author.get("given-names") + "givenName": self._author.get("given-names"), } def _from_given_and_last(self): return { "@type": "Person", "familyName": self._get_full_last_name(), - "givenName": self._author.get("given-names") + "givenName": self._author.get("given-names"), } def _from_given_and_last_and_affiliation(self): return { "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": self._author.get("affiliation") - }, + "affiliation": {"@type": "Organization", "name": self._author.get("affiliation")}, "familyName": self._get_full_last_name(), - "givenName": self._author.get("given-names") + "givenName": self._author.get("given-names"), } def _from_given_and_last_and_affiliation_and_orcid(self): return { "@id": self._author.get("orcid"), "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": self._author.get("affiliation") - }, + "affiliation": {"@type": "Organization", "name": self._author.get("affiliation")}, "familyName": self._get_full_last_name(), - "givenName": self._author.get("given-names") + "givenName": self._author.get("given-names"), } def _from_given_and_last_and_alias(self): @@ -657,32 +538,26 @@ def _from_given_and_last_and_alias(self): "@type": "Person", "alternateName": self._author.get("alias"), "familyName": self._get_full_last_name(), - "givenName": self._author.get("given-names") + "givenName": self._author.get("given-names"), } def _from_given_and_last_and_alias_and_affiliation(self): return { "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": self._author.get("affiliation") - }, + "affiliation": {"@type": "Organization", "name": self._author.get("affiliation")}, "alternateName": self._author.get("alias"), "familyName": self._get_full_last_name(), - "givenName": self._author.get("given-names") + "givenName": self._author.get("given-names"), } def _from_given_and_last_and_alias_and_affiliation_and_orcid(self): return { "@id": self._author.get("orcid"), "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": self._author.get("affiliation") - }, + "affiliation": {"@type": "Organization", "name": self._author.get("affiliation")}, "alternateName": self._author.get("alias"), "familyName": self._get_full_last_name(), - "givenName": self._author.get("given-names") + "givenName": self._author.get("given-names"), } def _from_given_and_last_and_alias_and_orcid(self): @@ -691,7 +566,7 @@ def _from_given_and_last_and_alias_and_orcid(self): "@type": "Person", "alternateName": self._author.get("alias"), "familyName": self._get_full_last_name(), - "givenName": self._author.get("given-names") + "givenName": self._author.get("given-names"), } def _from_given_and_last_and_orcid(self): @@ -699,71 +574,48 @@ def _from_given_and_last_and_orcid(self): "@id": self._author.get("orcid"), "@type": "Person", "familyName": self._get_full_last_name(), - "givenName": self._author.get("given-names") + "givenName": self._author.get("given-names"), } def _from_given_and_orcid(self): - return { - "@id": self._author.get("orcid"), - "@type": "Person", - "givenName": self._author.get("given-names") - } + return {"@id": self._author.get("orcid"), "@type": "Person", "givenName": self._author.get("given-names")} def _from_last(self): - return { - "@type": "Person", - "familyName": self._get_full_last_name() - } + return {"@type": "Person", "familyName": self._get_full_last_name()} def _from_last_and_affiliation(self): return { "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": self._author.get("affiliation") - }, - "familyName": self._get_full_last_name() + "affiliation": {"@type": "Organization", "name": self._author.get("affiliation")}, + "familyName": self._get_full_last_name(), } def _from_last_and_affiliation_and_orcid(self): return { "@id": self._author.get("orcid"), "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": self._author.get("affiliation") - }, - "familyName": self._get_full_last_name() + "affiliation": {"@type": "Organization", "name": self._author.get("affiliation")}, + "familyName": self._get_full_last_name(), } def _from_last_and_alias(self): - return { - "@type": "Person", - "alternateName": self._author.get("alias"), - "familyName": self._get_full_last_name() - } + return {"@type": "Person", "alternateName": self._author.get("alias"), "familyName": self._get_full_last_name()} def _from_last_and_alias_and_affiliation(self): return { "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": self._author.get("affiliation") - }, + "affiliation": {"@type": "Organization", "name": self._author.get("affiliation")}, "alternateName": self._author.get("alias"), - "familyName": self._get_full_last_name() + "familyName": self._get_full_last_name(), } def _from_last_and_alias_and_affiliation_and_orcid(self): return { "@id": self._author.get("orcid"), "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": self._author.get("affiliation") - }, + "affiliation": {"@type": "Organization", "name": self._author.get("affiliation")}, "alternateName": self._author.get("alias"), - "familyName": self._get_full_last_name() + "familyName": self._get_full_last_name(), } def _from_last_and_alias_and_orcid(self): @@ -771,34 +623,20 @@ def _from_last_and_alias_and_orcid(self): "@id": self._author.get("orcid"), "@type": "Person", "alternateName": self._author.get("alias"), - "familyName": self._get_full_last_name() + "familyName": self._get_full_last_name(), } def _from_last_and_orcid(self): - return { - "@id": self._author.get("orcid"), - "@type": "Person", - "familyName": self._get_full_last_name() - } + return {"@id": self._author.get("orcid"), "@type": "Person", "familyName": self._get_full_last_name()} def _from_name(self): - return { - "@type": "Organization", - "name": self._author.get("name") - } + return {"@type": "Organization", "name": self._author.get("name")} def _from_name_and_orcid(self): - return { - "@id": self._author.get("orcid"), - "@type": "Organization", - "name": self._author.get("name") - } + return {"@id": self._author.get("orcid"), "@type": "Organization", "name": self._author.get("name")} def _from_orcid(self): - return { - "@id": self._author.get("orcid"), - "@type": "Person" - } + return {"@id": self._author.get("orcid"), "@type": "Person"} def as_dict(self): key = self._get_key() diff --git a/src/cffconvert/lib/cff_1_x_x/authors/zenodo.py b/src/cffconvert/lib/cff_1_x_x/authors/zenodo.py index 9e2ead6a4..2a97f7441 100644 --- a/src/cffconvert/lib/cff_1_x_x/authors/zenodo.py +++ b/src/cffconvert/lib/cff_1_x_x/authors/zenodo.py @@ -3,7 +3,6 @@ # pylint: disable=too-few-public-methods class ZenodoAuthor(BaseAuthor): - def __init__(self, author): super().__init__(author) self._behaviors = { @@ -134,144 +133,103 @@ def __init__(self, author): "_____OE": self._from_orcid, "_____O_": self._from_orcid, "______E": ZenodoAuthor._from_thin_air, - "_______": ZenodoAuthor._from_thin_air + "_______": ZenodoAuthor._from_thin_air, } def _from_affiliation(self): - return { - "affiliation": self._author.get("affiliation") - } + return {"affiliation": self._author.get("affiliation")} def _from_affiliation_and_orcid(self): - return { - "affiliation": self._author.get("affiliation"), - "orcid": self._get_id_from_orcid_url() - } + return {"affiliation": self._author.get("affiliation"), "orcid": self._get_id_from_orcid_url()} def _from_alias(self): - return { - "name": self._author.get("alias") - } + return {"name": self._author.get("alias")} def _from_alias_and_affiliation(self): - return { - "affiliation": self._author.get("affiliation"), - "name": self._author.get("alias") - } + return {"affiliation": self._author.get("affiliation"), "name": self._author.get("alias")} def _from_alias_and_affiliation_and_orcid(self): return { "affiliation": self._author.get("affiliation"), "name": self._author.get("alias"), - "orcid": self._get_id_from_orcid_url() + "orcid": self._get_id_from_orcid_url(), } def _from_alias_and_orcid(self): - return { - "name": self._author.get("alias"), - "orcid": self._get_id_from_orcid_url() - } + return {"name": self._author.get("alias"), "orcid": self._get_id_from_orcid_url()} def _from_given(self): - return { - "name": self._author.get("given-names") - } + return {"name": self._author.get("given-names")} def _from_given_and_affiliation(self): - return { - "affiliation": self._author.get("affiliation"), - "name": self._author.get("given-names") - } + return {"affiliation": self._author.get("affiliation"), "name": self._author.get("given-names")} def _from_given_and_affiliation_and_orcid(self): return { "affiliation": self._author.get("affiliation"), "name": self._author.get("given-names"), - "orcid": self._get_id_from_orcid_url() + "orcid": self._get_id_from_orcid_url(), } def _from_given_and_last(self): - return { - "name": self._get_full_last_name() + ", " + self._author.get("given-names") - } + return {"name": self._get_full_last_name() + ", " + self._author.get("given-names")} def _from_given_and_last_and_affiliation(self): return { "affiliation": self._author.get("affiliation"), - "name": self._get_full_last_name() + ", " + self._author.get("given-names") + "name": self._get_full_last_name() + ", " + self._author.get("given-names"), } def _from_given_and_last_and_affiliation_and_orcid(self): return { "affiliation": self._author.get("affiliation"), "name": self._get_full_last_name() + ", " + self._author.get("given-names"), - "orcid": self._get_id_from_orcid_url() + "orcid": self._get_id_from_orcid_url(), } def _from_given_and_last_and_orcid(self): return { "name": self._get_full_last_name() + ", " + self._author.get("given-names"), - "orcid": self._get_id_from_orcid_url() + "orcid": self._get_id_from_orcid_url(), } def _from_given_and_orcid(self): - return { - "name": self._author.get("given-names"), - "orcid": self._get_id_from_orcid_url() - } + return {"name": self._author.get("given-names"), "orcid": self._get_id_from_orcid_url()} def _from_last(self): - return { - "name": self._get_full_last_name() - } + return {"name": self._get_full_last_name()} def _from_last_and_affiliation(self): - return { - "affiliation": self._author.get("affiliation"), - "name": self._get_full_last_name() - } + return {"affiliation": self._author.get("affiliation"), "name": self._get_full_last_name()} def _from_last_and_affiliation_and_orcid(self): return { "affiliation": self._author.get("affiliation"), "name": self._get_full_last_name(), - "orcid": self._get_id_from_orcid_url() + "orcid": self._get_id_from_orcid_url(), } def _from_last_and_orcid(self): - return { - "name": self._get_full_last_name(), - "orcid": self._get_id_from_orcid_url() - } + return {"name": self._get_full_last_name(), "orcid": self._get_id_from_orcid_url()} def _from_name(self): - return { - "name": self._author.get("name") - } + return {"name": self._author.get("name")} def _from_name_and_affiliation(self): - return { - "affiliation": self._author.get("affiliation"), - "name": self._author.get("name") - } + return {"affiliation": self._author.get("affiliation"), "name": self._author.get("name")} def _from_name_and_affiliation_and_orcid(self): return { "affiliation": self._author.get("affiliation"), "name": self._author.get("name"), - "orcid": self._get_id_from_orcid_url() + "orcid": self._get_id_from_orcid_url(), } def _from_name_and_orcid(self): - return { - "name": self._author.get("name"), - "orcid": self._get_id_from_orcid_url() - } + return {"name": self._author.get("name"), "orcid": self._get_id_from_orcid_url()} def _from_orcid(self): - return { - "orcid": self._get_id_from_orcid_url() - } + return {"orcid": self._get_id_from_orcid_url()} def _get_id_from_orcid_url(self): return self._author.get("orcid").replace("https://orcid.org/", "") diff --git a/src/cffconvert/lib/cff_1_x_x/bibtex.py b/src/cffconvert/lib/cff_1_x_x/bibtex.py index 9557b532b..7dd016e73 100644 --- a/src/cffconvert/lib/cff_1_x_x/bibtex.py +++ b/src/cffconvert/lib/cff_1_x_x/bibtex.py @@ -2,7 +2,6 @@ class BibtexObjectShared: - supported_cff_versions = None def __init__(self, cffobj, initialize_empty=False): @@ -21,22 +20,14 @@ def __init__(self, cffobj, initialize_empty=False): self.add_all() def __str__(self): - items = [item for item in [self.author, - self.doi, - self.month, - self.title, - self.url, - self.year] if item is not None] + items = [ + item for item in [self.author, self.doi, self.month, self.title, self.url, self.year] if item is not None + ] joined = ",\n".join(items) return "@misc{YourReferenceHere,\n" + joined + "\n}\n" def add_all(self): - self.add_author() \ - .add_doi() \ - .add_month() \ - .add_title() \ - .add_url() \ - .add_year() + self.add_author().add_doi().add_month().add_title().add_url().add_year() return self @abstractmethod diff --git a/src/cffconvert/lib/cff_1_x_x/endnote.py b/src/cffconvert/lib/cff_1_x_x/endnote.py index 192f08b5a..27ec0f750 100644 --- a/src/cffconvert/lib/cff_1_x_x/endnote.py +++ b/src/cffconvert/lib/cff_1_x_x/endnote.py @@ -2,7 +2,6 @@ class EndnoteObjectShared: - supported_cff_versions = None def __init__(self, cffobj, initialize_empty=False): @@ -21,21 +20,13 @@ def __init__(self, cffobj, initialize_empty=False): self.add_all() def __str__(self): - items = [item for item in [self.author, - self.year, - self.keyword, - self.doi, - self.name, - self.url] if item is not None] + items = [ + item for item in [self.author, self.year, self.keyword, self.doi, self.name, self.url] if item is not None + ] return "%0 Generic\n" + "".join(items) def add_all(self): - self.add_author() \ - .add_doi() \ - .add_keyword() \ - .add_name() \ - .add_url() \ - .add_year() + self.add_author().add_doi().add_keyword().add_name().add_url().add_year() return self @abstractmethod diff --git a/src/cffconvert/lib/cff_1_x_x/ris.py b/src/cffconvert/lib/cff_1_x_x/ris.py index dd7f22f99..5d3422cdd 100644 --- a/src/cffconvert/lib/cff_1_x_x/ris.py +++ b/src/cffconvert/lib/cff_1_x_x/ris.py @@ -2,7 +2,6 @@ class RisObjectShared: - supported_cff_versions = None def __init__(self, cffobj, initialize_empty=False): @@ -23,25 +22,24 @@ def __init__(self, cffobj, initialize_empty=False): self.add_all() def __str__(self): - items = [item for item in [self.abstract, - self.author, - self.date, - self.doi, - self.keywords, - self.year, - self.title, - self.url] if item is not None] + items = [ + item + for item in [ + self.abstract, + self.author, + self.date, + self.doi, + self.keywords, + self.year, + self.title, + self.url, + ] + if item is not None + ] return "TY - GEN\n" + "".join(items) + "ER\n" def add_all(self): - self.add_abstract() \ - .add_author() \ - .add_date() \ - .add_doi() \ - .add_keywords() \ - .add_title() \ - .add_url() \ - .add_year() + self.add_abstract().add_author().add_date().add_doi().add_keywords().add_title().add_url().add_year() return self def add_abstract(self): diff --git a/src/cffconvert/lib/cff_1_x_x/schemaorg.py b/src/cffconvert/lib/cff_1_x_x/schemaorg.py index b20c61269..55db1076b 100644 --- a/src/cffconvert/lib/cff_1_x_x/schemaorg.py +++ b/src/cffconvert/lib/cff_1_x_x/schemaorg.py @@ -3,7 +3,6 @@ class SchemaorgObjectShared: - supported_cff_versions = None def __init__(self, cffobj): @@ -36,23 +35,13 @@ def __str__(self, sort_keys=True, indent=2): "license": self.license, "name": self.name, "url": self.url, - "version": self.version + "version": self.version, } filtered = [item for item in data.items() if item[1] is not None] return json.dumps(dict(filtered), sort_keys=sort_keys, indent=indent, ensure_ascii=False) + "\n" def add_all(self): - self.add_author() \ - .add_contributor() \ - .add_date_published() \ - .add_description() \ - .add_identifier() \ - .add_keywords() \ - .add_license() \ - .add_name() \ - .add_type() \ - .add_urls() \ - .add_version() + self.add_author().add_contributor().add_date_published().add_description().add_identifier().add_keywords().add_license().add_name().add_type().add_urls().add_version() return self @abstractmethod diff --git a/src/cffconvert/lib/cff_1_x_x/urls/apalike.py b/src/cffconvert/lib/cff_1_x_x/urls/apalike.py index fb0dc473c..1edad6eb4 100644 --- a/src/cffconvert/lib/cff_1_x_x/urls/apalike.py +++ b/src/cffconvert/lib/cff_1_x_x/urls/apalike.py @@ -3,7 +3,6 @@ # pylint: disable=too-few-public-methods class ApalikeUrl(BaseUrl): - def __init__(self, cffobj): super().__init__(cffobj) self._behaviors = { @@ -38,7 +37,7 @@ def __init__(self, cffobj): "___CU": self._from_url, "___C_": self._from_repository_code, "____U": self._from_url, - "_____": ApalikeUrl._from_thin_air + "_____": ApalikeUrl._from_thin_air, } def _from_identifiers_url(self): @@ -64,11 +63,13 @@ def _from_url(self): return "URL: " + self._cffobj.get("url") def as_string(self): - key = "".join([ - self._has_identifiers_url(), - self._has_repository(), - self._has_repository_artifact(), - self._has_repository_code(), - self._has_url() - ]) + key = "".join( + [ + self._has_identifiers_url(), + self._has_repository(), + self._has_repository_artifact(), + self._has_repository_code(), + self._has_url(), + ] + ) return self._behaviors[key]() diff --git a/src/cffconvert/lib/cff_1_x_x/urls/base.py b/src/cffconvert/lib/cff_1_x_x/urls/base.py index e01c98880..417207ef2 100644 --- a/src/cffconvert/lib/cff_1_x_x/urls/base.py +++ b/src/cffconvert/lib/cff_1_x_x/urls/base.py @@ -3,7 +3,6 @@ # pylint: disable=too-few-public-methods class BaseUrl(ABC): - def __init__(self, cffobj): self._cffobj = cffobj self._behaviors = None diff --git a/src/cffconvert/lib/cff_1_x_x/urls/bibtex.py b/src/cffconvert/lib/cff_1_x_x/urls/bibtex.py index 72a624de5..a1e27e886 100644 --- a/src/cffconvert/lib/cff_1_x_x/urls/bibtex.py +++ b/src/cffconvert/lib/cff_1_x_x/urls/bibtex.py @@ -3,7 +3,6 @@ # pylint: disable=too-few-public-methods class BibtexUrl(BaseUrl): - def __init__(self, cffobj): super().__init__(cffobj) self._behaviors = { @@ -38,37 +37,39 @@ def __init__(self, cffobj): "___CU": self._from_url, "___C_": self._from_repository_code, "____U": self._from_url, - "_____": BibtexUrl._from_thin_air + "_____": BibtexUrl._from_thin_air, } def _from_identifiers_url(self): urls = self._get_urls_from_identifiers() if len(urls) > 0: - return f"url = { '{' + urls[0].get('value') + '}' }" + return f"url = {'{' + urls[0].get('value') + '}'}" return None def _from_repository(self): - return f"url = { '{' + self._cffobj.get('repository') + '}' }" + return f"url = {'{' + self._cffobj.get('repository') + '}'}" def _from_repository_artifact(self): - return f"url = { '{' + self._cffobj.get('repository-artifact') + '}' }" + return f"url = {'{' + self._cffobj.get('repository-artifact') + '}'}" def _from_repository_code(self): - return f"url = { '{' + self._cffobj.get('repository-code') + '}' }" + return f"url = {'{' + self._cffobj.get('repository-code') + '}'}" @staticmethod def _from_thin_air(): return None def _from_url(self): - return f"url = { '{' + self._cffobj.get('url') + '}' }" + return f"url = {'{' + self._cffobj.get('url') + '}'}" def as_string(self): - key = "".join([ - self._has_identifiers_url(), - self._has_repository(), - self._has_repository_artifact(), - self._has_repository_code(), - self._has_url() - ]) + key = "".join( + [ + self._has_identifiers_url(), + self._has_repository(), + self._has_repository_artifact(), + self._has_repository_code(), + self._has_url(), + ] + ) return self._behaviors[key]() diff --git a/src/cffconvert/lib/cff_1_x_x/urls/endnote.py b/src/cffconvert/lib/cff_1_x_x/urls/endnote.py index c64e6e301..0e5b99fbb 100644 --- a/src/cffconvert/lib/cff_1_x_x/urls/endnote.py +++ b/src/cffconvert/lib/cff_1_x_x/urls/endnote.py @@ -3,7 +3,6 @@ # pylint: disable=too-few-public-methods class EndnoteUrl(BaseUrl): - def __init__(self, cffobj): super().__init__(cffobj) self._behaviors = { @@ -38,7 +37,7 @@ def __init__(self, cffobj): "___CU": self._from_url, "___C_": self._from_repository_code, "____U": self._from_url, - "_____": EndnoteUrl._from_thin_air + "_____": EndnoteUrl._from_thin_air, } def _from_identifiers_url(self): @@ -64,11 +63,13 @@ def _from_url(self): return "%U " + self._cffobj.get("url") + "\n" def as_string(self): - key = "".join([ - self._has_identifiers_url(), - self._has_repository(), - self._has_repository_artifact(), - self._has_repository_code(), - self._has_url() - ]) + key = "".join( + [ + self._has_identifiers_url(), + self._has_repository(), + self._has_repository_artifact(), + self._has_repository_code(), + self._has_url(), + ] + ) return self._behaviors[key]() diff --git a/src/cffconvert/lib/cff_1_x_x/urls/ris.py b/src/cffconvert/lib/cff_1_x_x/urls/ris.py index 40e9a947e..9879513fb 100644 --- a/src/cffconvert/lib/cff_1_x_x/urls/ris.py +++ b/src/cffconvert/lib/cff_1_x_x/urls/ris.py @@ -3,7 +3,6 @@ # pylint: disable=too-few-public-methods class RisUrl(BaseUrl): - def __init__(self, cffobj): super().__init__(cffobj) self._behaviors = { @@ -38,37 +37,39 @@ def __init__(self, cffobj): "___CU": self._from_url, "___C_": self._from_repository_code, "____U": self._from_url, - "_____": RisUrl._from_thin_air + "_____": RisUrl._from_thin_air, } def _from_identifiers_url(self): urls = self._get_urls_from_identifiers() if len(urls) > 0: - return f"UR - { urls[0].get('value') }\n" + return f"UR - {urls[0].get('value')}\n" return None def _from_repository(self): - return f"UR - { self._cffobj.get('repository') }\n" + return f"UR - {self._cffobj.get('repository')}\n" def _from_repository_artifact(self): - return f"UR - { self._cffobj.get('repository-artifact') }\n" + return f"UR - {self._cffobj.get('repository-artifact')}\n" def _from_repository_code(self): - return f"UR - { self._cffobj.get('repository-code') }\n" + return f"UR - {self._cffobj.get('repository-code')}\n" @staticmethod def _from_thin_air(): return None def _from_url(self): - return f"UR - { self._cffobj.get('url') }\n" + return f"UR - {self._cffobj.get('url')}\n" def as_string(self): - key = "".join([ - self._has_identifiers_url(), - self._has_repository(), - self._has_repository_artifact(), - self._has_repository_code(), - self._has_url() - ]) + key = "".join( + [ + self._has_identifiers_url(), + self._has_repository(), + self._has_repository_artifact(), + self._has_repository_code(), + self._has_url(), + ] + ) return self._behaviors[key]() diff --git a/src/cffconvert/lib/cff_1_x_x/urls/schemaorg.py b/src/cffconvert/lib/cff_1_x_x/urls/schemaorg.py index 3722446e7..e9216894d 100644 --- a/src/cffconvert/lib/cff_1_x_x/urls/schemaorg.py +++ b/src/cffconvert/lib/cff_1_x_x/urls/schemaorg.py @@ -3,7 +3,6 @@ # pylint: disable=too-few-public-methods class SchemaorgUrls(BaseUrl): - def __init__(self, cffobj): super().__init__(cffobj) self._behaviors = { @@ -38,7 +37,7 @@ def __init__(self, cffobj): "___CU": self._from_repository_code_and_url, "___C_": self._from_repository_code, "____U": self._from_url, - "_____": SchemaorgUrls._from_thin_air + "_____": SchemaorgUrls._from_thin_air, } def _from_identifiers_url_and_repository_code(self): @@ -85,11 +84,13 @@ def _from_url(self): return None, self._cffobj.get("url") def as_tuple(self): - key = "".join([ - self._has_identifiers_url(), - self._has_repository(), - self._has_repository_artifact(), - self._has_repository_code(), - self._has_url() - ]) + key = "".join( + [ + self._has_identifiers_url(), + self._has_repository(), + self._has_repository_artifact(), + self._has_repository_code(), + self._has_url(), + ] + ) return self._behaviors[key]() diff --git a/src/cffconvert/lib/cff_1_x_x/zenodo.py b/src/cffconvert/lib/cff_1_x_x/zenodo.py index d1e7aa357..9e121d4d4 100644 --- a/src/cffconvert/lib/cff_1_x_x/zenodo.py +++ b/src/cffconvert/lib/cff_1_x_x/zenodo.py @@ -3,7 +3,6 @@ class ZenodoObjectShared: - supported_cff_versions = None def __init__(self, cffobj, initialize_empty=False): @@ -36,22 +35,13 @@ def __str__(self, sort_keys=True, indent=2): "related_identifiers": self.related_identifiers, "title": self.title, "upload_type": self.upload_type, - "version": self.version + "version": self.version, } filtered = [item for item in data.items() if item[1] is not None] return json.dumps(dict(filtered), sort_keys=sort_keys, indent=indent, ensure_ascii=False) + "\n" def add_all(self): - self.add_contributors() \ - .add_creators() \ - .add_description() \ - .add_keywords() \ - .add_license() \ - .add_publication_date() \ - .add_related_identifiers() \ - .add_title() \ - .add_upload_type() \ - .add_version() + self.add_contributors().add_creators().add_description().add_keywords().add_license().add_publication_date().add_related_identifiers().add_title().add_upload_type().add_version() return self @abstractmethod @@ -87,7 +77,7 @@ def map_relation_type(rel): "IsMetadataFor", "IsOriginalFormOf", "IsVariantFormOf", - "IsVersionOf" + "IsVersionOf", ] return None if condition else rel[0].lower() + rel[1:] @@ -99,11 +89,13 @@ def map_relation_type(rel): if identifier.get("type") == "other" or identifier.get("value") in seen: # identifier type unsupported or identifier value seen already continue - related_identifiers.append({ - "identifier": identifier.get("value"), - "relation": map_relation_type(identifier.get("relation")) or "isSupplementedBy", - "scheme": identifier.get("type") - }) + related_identifiers.append( + { + "identifier": identifier.get("value"), + "relation": map_relation_type(identifier.get("relation")) or "isSupplementedBy", + "scheme": identifier.get("type"), + } + ) seen.append(identifier.get("value")) # add from doi doi = self.cffobj.get("doi") @@ -111,11 +103,7 @@ def map_relation_type(rel): # doi not available or seen already pass else: - related_identifiers.append({ - "identifier": doi, - "relation": "isSupplementedBy", - "scheme": "doi" - }) + related_identifiers.append({"identifier": doi, "relation": "isSupplementedBy", "scheme": "doi"}) seen.append(doi) # add from url sources for cffkey in ["repository", "repository-artifact", "repository-code", "url"]: @@ -123,11 +111,7 @@ def map_relation_type(rel): if url is None or url in seen: # url not available or seen already continue - related_identifiers.append({ - "identifier": url, - "relation": "isSupplementedBy", - "scheme": "url" - }) + related_identifiers.append({"identifier": url, "relation": "isSupplementedBy", "scheme": "url"}) seen.append(url) self.related_identifiers = related_identifiers if len(related_identifiers) > 0 else None return self diff --git a/src/cffconvert/lib/citation.py b/src/cffconvert/lib/citation.py index 517f03f34..6f7622950 100644 --- a/src/cffconvert/lib/citation.py +++ b/src/cffconvert/lib/citation.py @@ -6,14 +6,13 @@ class Citation: - _implementations = { "1.0.1": Citation_1_0_x, "1.0.2": Citation_1_0_x, "1.0.3": Citation_1_0_x, "1.1.0": Citation_1_1_x, "1.2.0": Citation_1_2_x, - "1.3.0": Citation_1_3_x + "1.3.0": Citation_1_3_x, } supported_cff_versions = _implementations.keys() diff --git a/src/cffconvert/lib/contracts/citation.py b/src/cffconvert/lib/contracts/citation.py index c130805f6..3e22a0eeb 100644 --- a/src/cffconvert/lib/contracts/citation.py +++ b/src/cffconvert/lib/contracts/citation.py @@ -3,7 +3,6 @@ class Contract(ABC): - @abstractmethod def _get_schema(self): pass diff --git a/tests/cli/helpers.py b/tests/cli/helpers.py index 5550f723c..8f2099193 100644 --- a/tests/cli/helpers.py +++ b/tests/cli/helpers.py @@ -11,7 +11,7 @@ def get_formats(): pytest.param("endnote", "endnote.enw", id="endnote", marks=pytest.mark.endnote), pytest.param("ris", "ris.txt", id="ris", marks=pytest.mark.ris), pytest.param("schema.org", "schemaorg.json", id="schema.org", marks=pytest.mark.schemaorg), - pytest.param("zenodo", ".zenodo.json", id="zenodo", marks=pytest.mark.zenodo) + pytest.param("zenodo", ".zenodo.json", id="zenodo", marks=pytest.mark.zenodo), ] diff --git a/tests/cli/test_rawify_url.py b/tests/cli/test_rawify_url.py index a05a6ffda..a20f32726 100644 --- a/tests/cli/test_rawify_url.py +++ b/tests/cli/test_rawify_url.py @@ -26,8 +26,12 @@ def test_github_url_with_owner_repo_blob_branchname_filename(): @pytest.mark.cli def test_github_url_with_owner_repo_blob_branchname_filename_deep(): - actual = rawify_url("https://github.com/theownername/thereponame/blob/thebranchname/somedir/someotherdir/thefilename") - expected = "https://raw.githubusercontent.com/theownername/thereponame/thebranchname/somedir/someotherdir/thefilename" + actual = rawify_url( + "https://github.com/theownername/thereponame/blob/thebranchname/somedir/someotherdir/thefilename" + ) + expected = ( + "https://raw.githubusercontent.com/theownername/thereponame/thebranchname/somedir/someotherdir/thefilename" + ) assert actual == expected @@ -40,7 +44,9 @@ def test_github_url_with_owner_repo_blob_sha(): @pytest.mark.cli def test_github_url_with_owner_repo_blob_sha_filename(): - actual = rawify_url("https://github.com/theownername/thereponame/blob/0123456789abcdef0123456789abcdef01234567/thefilename") + actual = rawify_url( + "https://github.com/theownername/thereponame/blob/0123456789abcdef0123456789abcdef01234567/thefilename" + ) expected = "https://raw.githubusercontent.com/theownername/thereponame/0123456789abcdef0123456789abcdef01234567/thefilename" assert actual == expected @@ -68,7 +74,9 @@ def test_github_url_with_owner_repo_commit_sha(): @pytest.mark.cli def test_github_url_with_owner_repo_commit_sha_filename(): - actual = rawify_url("https://github.com/theownername/thereponame/commit/0123456789abcdef0123456789abcdef01234567/thefilename") + actual = rawify_url( + "https://github.com/theownername/thereponame/commit/0123456789abcdef0123456789abcdef01234567/thefilename" + ) expected = "https://raw.githubusercontent.com/theownername/thereponame/0123456789abcdef0123456789abcdef01234567/thefilename" assert actual == expected @@ -96,7 +104,9 @@ def test_github_url_with_owner_repo_tree_sha(): @pytest.mark.cli def test_github_url_with_owner_repo_tree_sha_filename(): - actual = rawify_url("https://github.com/theownername/thereponame/tree/0123456789abcdef0123456789abcdef01234567/thefilename") + actual = rawify_url( + "https://github.com/theownername/thereponame/tree/0123456789abcdef0123456789abcdef01234567/thefilename" + ) expected = "https://raw.githubusercontent.com/theownername/thereponame/0123456789abcdef0123456789abcdef01234567/thefilename" assert actual == expected diff --git a/tests/lib/cff_1_0_3/a/test_apalike_object.py b/tests/lib/cff_1_0_3/a/test_apalike_object.py index 40428931e..c7b6912b7 100644 --- a/tests/lib/cff_1_0_3/a/test_apalike_object.py +++ b/tests/lib/cff_1_0_3/a/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_as_string(self): actual_apalike = apalike_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "apalike.txt") diff --git a/tests/lib/cff_1_0_3/a/test_bibtex_object.py b/tests/lib/cff_1_0_3/a/test_bibtex_object.py index ce12009b6..63c2374f1 100644 --- a/tests/lib/cff_1_0_3/a/test_bibtex_object.py +++ b/tests/lib/cff_1_0_3/a/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_as_string(self): actual_bibtex = bibtex_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "bibtex.bib") diff --git a/tests/lib/cff_1_0_3/a/test_codemeta_object.py b/tests/lib/cff_1_0_3/a/test_codemeta_object.py index f3bb1980b..bda59d883 100644 --- a/tests/lib/cff_1_0_3/a/test_codemeta_object.py +++ b/tests/lib/cff_1_0_3/a/test_codemeta_object.py @@ -18,7 +18,6 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_as_string(self): actual_codemeta = codemeta_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "codemeta.json") @@ -27,32 +26,28 @@ def test_as_string(self): assert actual_codemeta == expected_codemeta def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": "Netherlands eScience Center" + assert codemeta_object().add_author().author == [ + { + "@type": "Person", + "affiliation": {"@type": "Organization", "name": "Netherlands eScience Center"}, + "familyName": "Spaaks", + "givenName": "Jurriaan H.", + "email": "my@email.notexist", }, - "familyName": "Spaaks", - "givenName": "Jurriaan H.", - "email": "my@email.notexist" - }, { - "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": "Netherlands eScience Center" + { + "@type": "Person", + "affiliation": {"@type": "Organization", "name": "Netherlands eScience Center"}, + "familyName": "Klaver", + "givenName": "Tom", }, - "familyName": "Klaver", - "givenName": "Tom" - }] + ] def test_check_cffobj(self): codemeta_object().check_cffobj() # doesn't need an assert def test_code_repository(self): - assert codemeta_object().add_urls().code_repository == "https://github.com/citation-file-format" + \ - "/cffconvert" + assert codemeta_object().add_urls().code_repository == "https://github.com/citation-file-format" + "/cffconvert" def test_date_published(self): assert codemeta_object().add_date_published().date_published == "2018-01-16" diff --git a/tests/lib/cff_1_0_3/a/test_endnote_object.py b/tests/lib/cff_1_0_3/a/test_endnote_object.py index dec130c69..82df4d7f6 100644 --- a/tests/lib/cff_1_0_3/a/test_endnote_object.py +++ b/tests/lib/cff_1_0_3/a/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_as_string(self): actual_endnote = endnote_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "endnote.enw") diff --git a/tests/lib/cff_1_0_3/a/test_ris_object.py b/tests/lib/cff_1_0_3/a/test_ris_object.py index 12ec2aeab..4049be590 100644 --- a/tests/lib/cff_1_0_3/a/test_ris_object.py +++ b/tests/lib/cff_1_0_3/a/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None @@ -43,8 +42,10 @@ def test_doi(self): assert ris_object().add_doi().doi == "DO - 10.5281/zenodo.1162057\n" def test_keywords(self): - assert ris_object().add_keywords().keywords == "KW - citation\nKW - bibliography\n" + \ - "KW - cff\nKW - CITATION.cff\n" + assert ( + ris_object().add_keywords().keywords + == "KW - citation\nKW - bibliography\n" + "KW - cff\nKW - CITATION.cff\n" + ) def test_title(self): assert ris_object().add_title().title == "TI - cffconvert\n" diff --git a/tests/lib/cff_1_0_3/a/test_schemaorg_object.py b/tests/lib/cff_1_0_3/a/test_schemaorg_object.py index a5fd9a095..9ef1c4b0a 100644 --- a/tests/lib/cff_1_0_3/a/test_schemaorg_object.py +++ b/tests/lib/cff_1_0_3/a/test_schemaorg_object.py @@ -18,7 +18,6 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_as_string(self): actual_schemaorg = schemaorg_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "schemaorg.json") @@ -27,32 +26,30 @@ def test_as_string(self): assert actual_schemaorg == expected_schemaorg def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": "Netherlands eScience Center" + assert schemaorg_object().add_author().author == [ + { + "@type": "Person", + "affiliation": {"@type": "Organization", "name": "Netherlands eScience Center"}, + "familyName": "Spaaks", + "givenName": "Jurriaan H.", + "email": "my@email.notexist", }, - "familyName": "Spaaks", - "givenName": "Jurriaan H.", - "email": "my@email.notexist" - }, { - "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": "Netherlands eScience Center" + { + "@type": "Person", + "affiliation": {"@type": "Organization", "name": "Netherlands eScience Center"}, + "familyName": "Klaver", + "givenName": "Tom", }, - "familyName": "Klaver", - "givenName": "Tom" - }] + ] def test_check_cffobj(self): schemaorg_object().check_cffobj() # doesn't need an assert def test_code_repository(self): - assert schemaorg_object().add_urls().code_repository == "https://github.com/citation-file-format" + \ - "/cffconvert" + assert ( + schemaorg_object().add_urls().code_repository == "https://github.com/citation-file-format" + "/cffconvert" + ) def test_contributor(self): assert schemaorg_object().add_contributor().contributor is None @@ -76,8 +73,7 @@ def test_name(self): assert schemaorg_object().add_name().name == "cffconvert" def test_url(self): - assert schemaorg_object().add_urls().url == "https://github.com/citation-file-format" + \ - "/cffconvert" + assert schemaorg_object().add_urls().url == "https://github.com/citation-file-format" + "/cffconvert" def test_version(self): assert schemaorg_object().add_version().version == "1.0.0" diff --git a/tests/lib/cff_1_0_3/a/test_zenodo_object.py b/tests/lib/cff_1_0_3/a/test_zenodo_object.py index fb0f0aaa6..6f108d047 100644 --- a/tests/lib/cff_1_0_3/a/test_zenodo_object.py +++ b/tests/lib/cff_1_0_3/a/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -35,14 +34,8 @@ def test_contributors(self): def test_creators(self): assert zenodo_object().add_creators().creators == [ - { - "affiliation": "Netherlands eScience Center", - "name": "Spaaks, Jurriaan H." - }, - { - "affiliation": "Netherlands eScience Center", - "name": "Klaver, Tom" - } + {"affiliation": "Netherlands eScience Center", "name": "Spaaks, Jurriaan H."}, + {"affiliation": "Netherlands eScience Center", "name": "Klaver, Tom"}, ] def test_keywords(self): @@ -55,15 +48,14 @@ def test_publication_date(self): assert zenodo_object().add_publication_date().publication_date == "2018-01-16" def test_related_identifiers(self): - assert zenodo_object().add_related_identifiers().related_identifiers == [{ - "identifier": "10.5281/zenodo.1162057", - "relation": "isSupplementedBy", - "scheme": "doi" - }, { - "identifier": "https://github.com/citation-file-format/cffconvert", - "relation": "isSupplementedBy", - "scheme": "url" - }] + assert zenodo_object().add_related_identifiers().related_identifiers == [ + {"identifier": "10.5281/zenodo.1162057", "relation": "isSupplementedBy", "scheme": "doi"}, + { + "identifier": "https://github.com/citation-file-format/cffconvert", + "relation": "isSupplementedBy", + "scheme": "url", + }, + ] def test_title(self): assert zenodo_object().add_title().title == "cffconvert" diff --git a/tests/lib/cff_1_0_3/b/test_apalike_object.py b/tests/lib/cff_1_0_3/b/test_apalike_object.py index 445d55745..b1e5e9200 100644 --- a/tests/lib/cff_1_0_3/b/test_apalike_object.py +++ b/tests/lib/cff_1_0_3/b/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_as_string(self): actual_apalike = apalike_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "apalike.txt") diff --git a/tests/lib/cff_1_0_3/b/test_bibtex_object.py b/tests/lib/cff_1_0_3/b/test_bibtex_object.py index 26f8e4331..28ee4c976 100644 --- a/tests/lib/cff_1_0_3/b/test_bibtex_object.py +++ b/tests/lib/cff_1_0_3/b/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_as_string(self): actual_bibtex = bibtex_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "bibtex.bib") diff --git a/tests/lib/cff_1_0_3/b/test_codemeta_object.py b/tests/lib/cff_1_0_3/b/test_codemeta_object.py index 6909caace..a27f69644 100644 --- a/tests/lib/cff_1_0_3/b/test_codemeta_object.py +++ b/tests/lib/cff_1_0_3/b/test_codemeta_object.py @@ -18,7 +18,6 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_as_string(self): actual_codemeta = codemeta_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "codemeta.json") @@ -27,11 +26,13 @@ def test_as_string(self): assert actual_codemeta == expected_codemeta def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Person", - "givenName": "Gonzalo", - "familyName": "Fernández de Córdoba Jr.", - }] + assert codemeta_object().add_author().author == [ + { + "@type": "Person", + "givenName": "Gonzalo", + "familyName": "Fernández de Córdoba Jr.", + } + ] def test_check_cffobj(self): codemeta_object().check_cffobj() diff --git a/tests/lib/cff_1_0_3/b/test_endnote_object.py b/tests/lib/cff_1_0_3/b/test_endnote_object.py index 131082582..759376fc4 100644 --- a/tests/lib/cff_1_0_3/b/test_endnote_object.py +++ b/tests/lib/cff_1_0_3/b/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_as_string(self): actual_endnote = endnote_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "endnote.enw") diff --git a/tests/lib/cff_1_0_3/b/test_ris_object.py b/tests/lib/cff_1_0_3/b/test_ris_object.py index 439d811af..fa9f2fcf4 100644 --- a/tests/lib/cff_1_0_3/b/test_ris_object.py +++ b/tests/lib/cff_1_0_3/b/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_0_3/b/test_schemaorg_object.py b/tests/lib/cff_1_0_3/b/test_schemaorg_object.py index 216cb235e..2f88c12ce 100644 --- a/tests/lib/cff_1_0_3/b/test_schemaorg_object.py +++ b/tests/lib/cff_1_0_3/b/test_schemaorg_object.py @@ -18,7 +18,6 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_as_string(self): actual_schemaorg = schemaorg_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "schemaorg.json") @@ -27,11 +26,13 @@ def test_as_string(self): assert actual_schemaorg == expected_schemaorg def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Person", - "givenName": "Gonzalo", - "familyName": "Fernández de Córdoba Jr.", - }] + assert schemaorg_object().add_author().author == [ + { + "@type": "Person", + "givenName": "Gonzalo", + "familyName": "Fernández de Córdoba Jr.", + } + ] def test_check_cffobj(self): schemaorg_object().check_cffobj() diff --git a/tests/lib/cff_1_0_3/b/test_zenodo_object.py b/tests/lib/cff_1_0_3/b/test_zenodo_object.py index 6ccd9c5cf..a40cf479d 100644 --- a/tests/lib/cff_1_0_3/b/test_zenodo_object.py +++ b/tests/lib/cff_1_0_3/b/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,11 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [ - { - "name": "Fernández de Córdoba Jr., Gonzalo" - } - ] + assert zenodo_object().add_creators().creators == [{"name": "Fernández de Córdoba Jr., Gonzalo"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None diff --git a/tests/lib/cff_1_0_3/c/test_apalike_object.py b/tests/lib/cff_1_0_3/c/test_apalike_object.py index b926f3eca..1a3ecd943 100644 --- a/tests/lib/cff_1_0_3/c/test_apalike_object.py +++ b/tests/lib/cff_1_0_3/c/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_as_string(self): actual_apalike = apalike_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "apalike.txt") diff --git a/tests/lib/cff_1_0_3/c/test_bibtex_object.py b/tests/lib/cff_1_0_3/c/test_bibtex_object.py index 9266a5cb2..0625b0b8a 100644 --- a/tests/lib/cff_1_0_3/c/test_bibtex_object.py +++ b/tests/lib/cff_1_0_3/c/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_as_string(self): actual_bibtex = bibtex_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "bibtex.bib") diff --git a/tests/lib/cff_1_0_3/c/test_codemeta_object.py b/tests/lib/cff_1_0_3/c/test_codemeta_object.py index e849e6c6b..ba74d8672 100644 --- a/tests/lib/cff_1_0_3/c/test_codemeta_object.py +++ b/tests/lib/cff_1_0_3/c/test_codemeta_object.py @@ -18,7 +18,6 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_as_string(self): actual_codemeta = codemeta_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "codemeta.json") @@ -27,24 +26,21 @@ def test_as_string(self): assert actual_codemeta == expected_codemeta def test_author(self): - assert codemeta_object().add_author().author == [{ - "@id": "https://orcid.org/0000-0002-0948-1176", - "@type": "Person", - "givenName": "Jisk", - "familyName": "Attema", - "affiliation": { - "@type": "Organization", - "name": "Netherlands eScience Center" - } - }, { - "@type": "Person", - "givenName": "Faruk", - "familyName": "Diblen", - "affiliation": { - "@type": "Organization", - "name": "Netherlands eScience Center" - } - }] + assert codemeta_object().add_author().author == [ + { + "@id": "https://orcid.org/0000-0002-0948-1176", + "@type": "Person", + "givenName": "Jisk", + "familyName": "Attema", + "affiliation": {"@type": "Organization", "name": "Netherlands eScience Center"}, + }, + { + "@type": "Person", + "givenName": "Faruk", + "familyName": "Diblen", + "affiliation": {"@type": "Organization", "name": "Netherlands eScience Center"}, + }, + ] def test_check_cffobj(self): codemeta_object().check_cffobj() @@ -67,7 +63,7 @@ def test_keywords(self): "visualization", "big data", "visual data analytics", - "multi-dimensional data" + "multi-dimensional data", ] def test_license(self): diff --git a/tests/lib/cff_1_0_3/c/test_endnote_object.py b/tests/lib/cff_1_0_3/c/test_endnote_object.py index b5670fb0a..7b73e1a85 100644 --- a/tests/lib/cff_1_0_3/c/test_endnote_object.py +++ b/tests/lib/cff_1_0_3/c/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_as_string(self): actual_endnote = endnote_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "endnote.enw") @@ -37,8 +36,10 @@ def test_doi(self): assert endnote_object().add_doi().doi == "%R 10.5281/zenodo.1003346\n" def test_keyword(self): - assert endnote_object().add_keyword().keyword == "%K visualization\n%K big data\n" + \ - "%K visual data analytics\n%K multi-dimensional data\n" + assert ( + endnote_object().add_keyword().keyword + == "%K visualization\n%K big data\n" + "%K visual data analytics\n%K multi-dimensional data\n" + ) def test_name(self): assert endnote_object().add_name().name == "%T spot\n" diff --git a/tests/lib/cff_1_0_3/c/test_ris_object.py b/tests/lib/cff_1_0_3/c/test_ris_object.py index f07000af7..5db24c81d 100644 --- a/tests/lib/cff_1_0_3/c/test_ris_object.py +++ b/tests/lib/cff_1_0_3/c/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None @@ -43,8 +42,10 @@ def test_doi(self): assert ris_object().add_doi().doi == "DO - 10.5281/zenodo.1003346\n" def test_keywords(self): - assert ris_object().add_keywords().keywords == "KW - visualization\nKW - big data\n" + \ - "KW - visual data analytics\nKW - multi-dimensional data\n" + assert ( + ris_object().add_keywords().keywords + == "KW - visualization\nKW - big data\n" + "KW - visual data analytics\nKW - multi-dimensional data\n" + ) def test_title(self): assert ris_object().add_title().title == "TI - spot\n" diff --git a/tests/lib/cff_1_0_3/c/test_schemaorg_object.py b/tests/lib/cff_1_0_3/c/test_schemaorg_object.py index 5e55d7cb4..8966492fd 100644 --- a/tests/lib/cff_1_0_3/c/test_schemaorg_object.py +++ b/tests/lib/cff_1_0_3/c/test_schemaorg_object.py @@ -18,7 +18,6 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_as_string(self): actual_schemaorg = schemaorg_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "schemaorg.json") @@ -27,24 +26,21 @@ def test_as_string(self): assert actual_schemaorg == expected_schemaorg def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@id": "https://orcid.org/0000-0002-0948-1176", - "@type": "Person", - "givenName": "Jisk", - "familyName": "Attema", - "affiliation": { - "@type": "Organization", - "name": "Netherlands eScience Center" - } - }, { - "@type": "Person", - "givenName": "Faruk", - "familyName": "Diblen", - "affiliation": { - "@type": "Organization", - "name": "Netherlands eScience Center" - } - }] + assert schemaorg_object().add_author().author == [ + { + "@id": "https://orcid.org/0000-0002-0948-1176", + "@type": "Person", + "givenName": "Jisk", + "familyName": "Attema", + "affiliation": {"@type": "Organization", "name": "Netherlands eScience Center"}, + }, + { + "@type": "Person", + "givenName": "Faruk", + "familyName": "Diblen", + "affiliation": {"@type": "Organization", "name": "Netherlands eScience Center"}, + }, + ] def test_check_cffobj(self): schemaorg_object().check_cffobj() @@ -70,7 +66,7 @@ def test_keywords(self): "visualization", "big data", "visual data analytics", - "multi-dimensional data" + "multi-dimensional data", ] def test_license(self): diff --git a/tests/lib/cff_1_0_3/c/test_zenodo_object.py b/tests/lib/cff_1_0_3/c/test_zenodo_object.py index 94d132311..7e8a2b0c4 100644 --- a/tests/lib/cff_1_0_3/c/test_zenodo_object.py +++ b/tests/lib/cff_1_0_3/c/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -35,15 +34,8 @@ def test_contributors(self): def test_creators(self): assert zenodo_object().add_creators().creators == [ - { - "affiliation": "Netherlands eScience Center", - "name": "Attema, Jisk", - "orcid": "0000-0002-0948-1176" - }, - { - "affiliation": "Netherlands eScience Center", - "name": "Diblen, Faruk" - } + {"affiliation": "Netherlands eScience Center", "name": "Attema, Jisk", "orcid": "0000-0002-0948-1176"}, + {"affiliation": "Netherlands eScience Center", "name": "Diblen, Faruk"}, ] def test_keywords(self): @@ -51,7 +43,7 @@ def test_keywords(self): "visualization", "big data", "visual data analytics", - "multi-dimensional data" + "multi-dimensional data", ] def test_license(self): @@ -61,15 +53,10 @@ def test_publication_date(self): assert zenodo_object().add_publication_date().publication_date == "2017-10-07" def test_related_identifiers(self): - assert zenodo_object().add_related_identifiers().related_identifiers == [{ - "identifier": "10.5281/zenodo.1003346", - "relation": "isSupplementedBy", - "scheme": "doi" - }, { - "identifier": "https://github.com/NLeSC/spot", - "relation": "isSupplementedBy", - "scheme": "url" - }] + assert zenodo_object().add_related_identifiers().related_identifiers == [ + {"identifier": "10.5281/zenodo.1003346", "relation": "isSupplementedBy", "scheme": "doi"}, + {"identifier": "https://github.com/NLeSC/spot", "relation": "isSupplementedBy", "scheme": "url"}, + ] def test_title(self): assert zenodo_object().add_title().title == "spot" diff --git a/tests/lib/cff_1_0_3/d/test_apalike_object.py b/tests/lib/cff_1_0_3/d/test_apalike_object.py index 0fd224a04..5c09f7ae1 100644 --- a/tests/lib/cff_1_0_3/d/test_apalike_object.py +++ b/tests/lib/cff_1_0_3/d/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_as_string(self): actual_apalike = apalike_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "apalike.txt") diff --git a/tests/lib/cff_1_0_3/d/test_bibtex_object.py b/tests/lib/cff_1_0_3/d/test_bibtex_object.py index 03ef95008..ee0991f87 100644 --- a/tests/lib/cff_1_0_3/d/test_bibtex_object.py +++ b/tests/lib/cff_1_0_3/d/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_as_string(self): actual_bibtex = bibtex_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "bibtex.bib") @@ -27,8 +26,10 @@ def test_as_string(self): assert actual_bibtex == expected_bibtex def test_author(self): - assert bibtex_object().add_author().author == "author = {Spaaks, Jurriaan H. and Klaver, Tom and " + \ - "Verhoeven, Stefan and Druskat, Stephan}" + assert ( + bibtex_object().add_author().author + == "author = {Spaaks, Jurriaan H. and Klaver, Tom and " + "Verhoeven, Stefan and Druskat, Stephan}" + ) def test_check_cffobj(self): bibtex_object().check_cffobj() diff --git a/tests/lib/cff_1_0_3/d/test_codemeta_object.py b/tests/lib/cff_1_0_3/d/test_codemeta_object.py index 58235b5ba..6823a3b6d 100644 --- a/tests/lib/cff_1_0_3/d/test_codemeta_object.py +++ b/tests/lib/cff_1_0_3/d/test_codemeta_object.py @@ -18,7 +18,6 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_as_string(self): actual_codemeta = codemeta_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "codemeta.json") @@ -27,48 +26,40 @@ def test_as_string(self): assert actual_codemeta == expected_codemeta def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": "Netherlands eScience Center" + assert codemeta_object().add_author().author == [ + { + "@type": "Person", + "affiliation": {"@type": "Organization", "name": "Netherlands eScience Center"}, + "familyName": "Spaaks", + "givenName": "Jurriaan H.", }, - "familyName": "Spaaks", - "givenName": "Jurriaan H." - }, { - "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": "Netherlands eScience Center" + { + "@type": "Person", + "affiliation": {"@type": "Organization", "name": "Netherlands eScience Center"}, + "familyName": "Klaver", + "givenName": "Tom", }, - "familyName": "Klaver", - "givenName": "Tom" - }, { - "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": "Netherlands eScience Center" + { + "@type": "Person", + "affiliation": {"@type": "Organization", "name": "Netherlands eScience Center"}, + "familyName": "Verhoeven", + "givenName": "Stefan", }, - "familyName": "Verhoeven", - "givenName": "Stefan" - }, { - "@id": "https://orcid.org/0000-0003-4925-7248", - "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": "Humboldt-Universität zu Berlin" + { + "@id": "https://orcid.org/0000-0003-4925-7248", + "@type": "Person", + "affiliation": {"@type": "Organization", "name": "Humboldt-Universität zu Berlin"}, + "familyName": "Druskat", + "givenName": "Stephan", }, - "familyName": "Druskat", - "givenName": "Stephan" - }] + ] def test_check_cffobj(self): codemeta_object().check_cffobj() # doesn't need an assert def test_code_repository(self): - assert codemeta_object().add_urls().code_repository == "https://github.com/citation-file-format" + \ - "/cffconvert" + assert codemeta_object().add_urls().code_repository == "https://github.com/citation-file-format" + "/cffconvert" def test_date_published(self): assert codemeta_object().add_date_published().date_published == "2018-07-25" diff --git a/tests/lib/cff_1_0_3/d/test_endnote_object.py b/tests/lib/cff_1_0_3/d/test_endnote_object.py index fa0c88df2..8b54d2983 100644 --- a/tests/lib/cff_1_0_3/d/test_endnote_object.py +++ b/tests/lib/cff_1_0_3/d/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_as_string(self): actual_endnote = endnote_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "endnote.enw") @@ -27,8 +26,10 @@ def test_as_string(self): assert actual_endnote == expected_endnote def test_author(self): - assert endnote_object().add_author().author == "%A Spaaks, Jurriaan H.\n%A Klaver, Tom\n" + \ - "%A Verhoeven, Stefan\n%A Druskat, Stephan\n" + assert ( + endnote_object().add_author().author + == "%A Spaaks, Jurriaan H.\n%A Klaver, Tom\n" + "%A Verhoeven, Stefan\n%A Druskat, Stephan\n" + ) def test_check_cffobj(self): endnote_object().check_cffobj() diff --git a/tests/lib/cff_1_0_3/d/test_ris_object.py b/tests/lib/cff_1_0_3/d/test_ris_object.py index c00961a42..5a87aa049 100644 --- a/tests/lib/cff_1_0_3/d/test_ris_object.py +++ b/tests/lib/cff_1_0_3/d/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None @@ -30,8 +29,10 @@ def test_as_string(self): assert actual_ris == expected_ris def test_author(self): - assert ris_object().add_author().author == "AU - Spaaks, Jurriaan H.\nAU - Klaver, Tom\n" + \ - "AU - Verhoeven, Stefan\nAU - Druskat, Stephan\n" + assert ( + ris_object().add_author().author + == "AU - Spaaks, Jurriaan H.\nAU - Klaver, Tom\n" + "AU - Verhoeven, Stefan\nAU - Druskat, Stephan\n" + ) def test_check_cffobj(self): ris_object().check_cffobj() @@ -44,8 +45,10 @@ def test_doi(self): assert ris_object().add_doi().doi == "DO - 10.5281/zenodo.1162057\n" def test_keywords(self): - assert ris_object().add_keywords().keywords == "KW - citation\nKW - bibliography\n" + \ - "KW - cff\nKW - CITATION.cff\n" + assert ( + ris_object().add_keywords().keywords + == "KW - citation\nKW - bibliography\n" + "KW - cff\nKW - CITATION.cff\n" + ) def test_title(self): assert ris_object().add_title().title == "TI - cffconvert\n" diff --git a/tests/lib/cff_1_0_3/d/test_schemaorg_object.py b/tests/lib/cff_1_0_3/d/test_schemaorg_object.py index c66a3bfc1..8fee51091 100644 --- a/tests/lib/cff_1_0_3/d/test_schemaorg_object.py +++ b/tests/lib/cff_1_0_3/d/test_schemaorg_object.py @@ -18,7 +18,6 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_as_string(self): actual_schemaorg = schemaorg_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "schemaorg.json") @@ -27,48 +26,42 @@ def test_as_string(self): assert actual_schemaorg == expected_schemaorg def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": "Netherlands eScience Center" + assert schemaorg_object().add_author().author == [ + { + "@type": "Person", + "affiliation": {"@type": "Organization", "name": "Netherlands eScience Center"}, + "familyName": "Spaaks", + "givenName": "Jurriaan H.", }, - "familyName": "Spaaks", - "givenName": "Jurriaan H." - }, { - "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": "Netherlands eScience Center" + { + "@type": "Person", + "affiliation": {"@type": "Organization", "name": "Netherlands eScience Center"}, + "familyName": "Klaver", + "givenName": "Tom", }, - "familyName": "Klaver", - "givenName": "Tom" - }, { - "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": "Netherlands eScience Center" + { + "@type": "Person", + "affiliation": {"@type": "Organization", "name": "Netherlands eScience Center"}, + "familyName": "Verhoeven", + "givenName": "Stefan", }, - "familyName": "Verhoeven", - "givenName": "Stefan" - }, { - "@id": "https://orcid.org/0000-0003-4925-7248", - "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": "Humboldt-Universität zu Berlin" + { + "@id": "https://orcid.org/0000-0003-4925-7248", + "@type": "Person", + "affiliation": {"@type": "Organization", "name": "Humboldt-Universität zu Berlin"}, + "familyName": "Druskat", + "givenName": "Stephan", }, - "familyName": "Druskat", - "givenName": "Stephan" - }] + ] def test_check_cffobj(self): schemaorg_object().check_cffobj() # doesn't need an assert def test_code_repository(self): - assert schemaorg_object().add_urls().code_repository == "https://github.com/citation-file-format" + \ - "/cffconvert" + assert ( + schemaorg_object().add_urls().code_repository == "https://github.com/citation-file-format" + "/cffconvert" + ) def test_contributor(self): assert schemaorg_object().add_contributor().contributor is None @@ -92,8 +85,7 @@ def test_name(self): assert schemaorg_object().add_name().name == "cffconvert" def test_url(self): - assert schemaorg_object().add_urls().url == "https://github.com/citation-file-format" + \ - "/cffconvert" + assert schemaorg_object().add_urls().url == "https://github.com/citation-file-format" + "/cffconvert" def test_version(self): assert schemaorg_object().add_version().version == "1.0.1" diff --git a/tests/lib/cff_1_0_3/d/test_zenodo_object.py b/tests/lib/cff_1_0_3/d/test_zenodo_object.py index a6c6c7db0..cc98f6b67 100644 --- a/tests/lib/cff_1_0_3/d/test_zenodo_object.py +++ b/tests/lib/cff_1_0_3/d/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -35,23 +34,14 @@ def test_contributors(self): def test_creators(self): assert zenodo_object().add_creators().creators == [ - { - "affiliation": "Netherlands eScience Center", - "name": "Spaaks, Jurriaan H." - }, - { - "affiliation": "Netherlands eScience Center", - "name": "Klaver, Tom" - }, - { - "affiliation": "Netherlands eScience Center", - "name": "Verhoeven, Stefan" - }, + {"affiliation": "Netherlands eScience Center", "name": "Spaaks, Jurriaan H."}, + {"affiliation": "Netherlands eScience Center", "name": "Klaver, Tom"}, + {"affiliation": "Netherlands eScience Center", "name": "Verhoeven, Stefan"}, { "affiliation": "Humboldt-Universität zu Berlin", "name": "Druskat, Stephan", - "orcid": "0000-0003-4925-7248" - } + "orcid": "0000-0003-4925-7248", + }, ] def test_keywords(self): @@ -64,15 +54,14 @@ def test_publication_date(self): assert zenodo_object().add_publication_date().publication_date == "2018-07-25" def test_related_identifiers(self): - assert zenodo_object().add_related_identifiers().related_identifiers == [{ - "identifier": "10.5281/zenodo.1162057", - "relation": "isSupplementedBy", - "scheme": "doi" - }, { - "identifier": "https://github.com/citation-file-format/cffconvert", - "relation": "isSupplementedBy", - "scheme": "url" - }] + assert zenodo_object().add_related_identifiers().related_identifiers == [ + {"identifier": "10.5281/zenodo.1162057", "relation": "isSupplementedBy", "scheme": "doi"}, + { + "identifier": "https://github.com/citation-file-format/cffconvert", + "relation": "isSupplementedBy", + "scheme": "url", + }, + ] def test_title(self): assert zenodo_object().add_title().title == "cffconvert" diff --git a/tests/lib/cff_1_0_3/e/test_apalike_object.py b/tests/lib/cff_1_0_3/e/test_apalike_object.py index 0f806e7b0..5ed7bcf87 100644 --- a/tests/lib/cff_1_0_3/e/test_apalike_object.py +++ b/tests/lib/cff_1_0_3/e/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_as_string(self): actual_apalike = apalike_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "apalike.txt") diff --git a/tests/lib/cff_1_0_3/e/test_bibtex_object.py b/tests/lib/cff_1_0_3/e/test_bibtex_object.py index e53194de9..603c8ae17 100644 --- a/tests/lib/cff_1_0_3/e/test_bibtex_object.py +++ b/tests/lib/cff_1_0_3/e/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_as_string(self): actual_bibtex = bibtex_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "bibtex.bib") @@ -27,8 +26,10 @@ def test_as_string(self): assert actual_bibtex == expected_bibtex def test_author(self): - assert bibtex_object().add_author().author == "author = {Spaaks, Jurriaan H. and Klaver" + \ - ", Tom and Verhoeven, Stefan}" + assert ( + bibtex_object().add_author().author + == "author = {Spaaks, Jurriaan H. and Klaver" + ", Tom and Verhoeven, Stefan}" + ) def test_check_cffobj(self): bibtex_object().check_cffobj() diff --git a/tests/lib/cff_1_0_3/e/test_codemeta_object.py b/tests/lib/cff_1_0_3/e/test_codemeta_object.py index ab313fe16..df9ce8fa8 100644 --- a/tests/lib/cff_1_0_3/e/test_codemeta_object.py +++ b/tests/lib/cff_1_0_3/e/test_codemeta_object.py @@ -18,7 +18,6 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_as_string(self): actual_codemeta = codemeta_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "codemeta.json") @@ -27,39 +26,33 @@ def test_as_string(self): assert actual_codemeta == expected_codemeta def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": "Netherlands eScience Center" + assert codemeta_object().add_author().author == [ + { + "@type": "Person", + "affiliation": {"@type": "Organization", "name": "Netherlands eScience Center"}, + "familyName": "Spaaks", + "givenName": "Jurriaan H.", }, - "familyName": "Spaaks", - "givenName": "Jurriaan H." - }, { - "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": "Netherlands eScience Center" + { + "@type": "Person", + "affiliation": {"@type": "Organization", "name": "Netherlands eScience Center"}, + "familyName": "Klaver", + "givenName": "Tom", }, - "familyName": "Klaver", - "givenName": "Tom" - }, { - "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": "Netherlands eScience Center" + { + "@type": "Person", + "affiliation": {"@type": "Organization", "name": "Netherlands eScience Center"}, + "familyName": "Verhoeven", + "givenName": "Stefan", }, - "familyName": "Verhoeven", - "givenName": "Stefan" - }] + ] def test_check_cffobj(self): codemeta_object().check_cffobj() # doesn't need an assert def test_code_repository(self): - assert codemeta_object().add_urls().code_repository == "https://github.com/citation-file-format" + \ - "/cffconvert" + assert codemeta_object().add_urls().code_repository == "https://github.com/citation-file-format" + "/cffconvert" def test_date_published(self): assert codemeta_object().add_date_published().date_published == "2018-05-09" diff --git a/tests/lib/cff_1_0_3/e/test_endnote_object.py b/tests/lib/cff_1_0_3/e/test_endnote_object.py index b64ba0490..e1ee411af 100644 --- a/tests/lib/cff_1_0_3/e/test_endnote_object.py +++ b/tests/lib/cff_1_0_3/e/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_as_string(self): actual_endnote = endnote_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "endnote.enw") diff --git a/tests/lib/cff_1_0_3/e/test_ris_object.py b/tests/lib/cff_1_0_3/e/test_ris_object.py index 60461b6e7..fcd493918 100644 --- a/tests/lib/cff_1_0_3/e/test_ris_object.py +++ b/tests/lib/cff_1_0_3/e/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None @@ -30,8 +29,10 @@ def test_as_string(self): assert actual_ris == expected_ris def test_author(self): - assert ris_object().add_author().author == "AU - Spaaks, Jurriaan H.\nAU - Klaver, Tom\n" + \ - "AU - Verhoeven, Stefan\n" + assert ( + ris_object().add_author().author + == "AU - Spaaks, Jurriaan H.\nAU - Klaver, Tom\n" + "AU - Verhoeven, Stefan\n" + ) def test_check_cffobj(self): ris_object().check_cffobj() @@ -44,8 +45,10 @@ def test_doi(self): assert ris_object().add_doi().doi == "DO - 10.5281/zenodo.1162057\n" def test_keywords(self): - assert ris_object().add_keywords().keywords == "KW - citation\nKW - bibliography\n" + \ - "KW - cff\nKW - CITATION.cff\n" + assert ( + ris_object().add_keywords().keywords + == "KW - citation\nKW - bibliography\n" + "KW - cff\nKW - CITATION.cff\n" + ) def test_title(self): assert ris_object().add_title().title == "TI - cffconvert\n" diff --git a/tests/lib/cff_1_0_3/e/test_schemaorg_object.py b/tests/lib/cff_1_0_3/e/test_schemaorg_object.py index d878f1e12..18266f21a 100644 --- a/tests/lib/cff_1_0_3/e/test_schemaorg_object.py +++ b/tests/lib/cff_1_0_3/e/test_schemaorg_object.py @@ -18,7 +18,6 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_as_string(self): actual_schemaorg = schemaorg_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "schemaorg.json") @@ -27,39 +26,35 @@ def test_as_string(self): assert actual_schemaorg == expected_schemaorg def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": "Netherlands eScience Center" + assert schemaorg_object().add_author().author == [ + { + "@type": "Person", + "affiliation": {"@type": "Organization", "name": "Netherlands eScience Center"}, + "familyName": "Spaaks", + "givenName": "Jurriaan H.", }, - "familyName": "Spaaks", - "givenName": "Jurriaan H." - }, { - "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": "Netherlands eScience Center" + { + "@type": "Person", + "affiliation": {"@type": "Organization", "name": "Netherlands eScience Center"}, + "familyName": "Klaver", + "givenName": "Tom", }, - "familyName": "Klaver", - "givenName": "Tom" - }, { - "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": "Netherlands eScience Center" + { + "@type": "Person", + "affiliation": {"@type": "Organization", "name": "Netherlands eScience Center"}, + "familyName": "Verhoeven", + "givenName": "Stefan", }, - "familyName": "Verhoeven", - "givenName": "Stefan" - }] + ] def test_check_cffobj(self): schemaorg_object().check_cffobj() # doesn't need an assert def test_code_repository(self): - assert schemaorg_object().add_urls().code_repository == "https://github.com/citation-file-format" + \ - "/cffconvert" + assert ( + schemaorg_object().add_urls().code_repository == "https://github.com/citation-file-format" + "/cffconvert" + ) def test_contributor(self): assert schemaorg_object().add_contributor().contributor is None @@ -83,8 +78,7 @@ def test_name(self): assert schemaorg_object().add_name().name == "cffconvert" def test_url(self): - assert schemaorg_object().add_urls().url == "https://github.com/citation-file-format" + \ - "/cffconvert" + assert schemaorg_object().add_urls().url == "https://github.com/citation-file-format" + "/cffconvert" def test_version(self): assert schemaorg_object().add_version().version == "0.0.4" diff --git a/tests/lib/cff_1_0_3/e/test_zenodo_object.py b/tests/lib/cff_1_0_3/e/test_zenodo_object.py index f7224f391..3d731db9e 100644 --- a/tests/lib/cff_1_0_3/e/test_zenodo_object.py +++ b/tests/lib/cff_1_0_3/e/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -35,18 +34,9 @@ def test_contributors(self): def test_creators(self): assert zenodo_object().add_creators().creators == [ - { - "affiliation": "Netherlands eScience Center", - "name": "Spaaks, Jurriaan H." - }, - { - "affiliation": "Netherlands eScience Center", - "name": "Klaver, Tom" - }, - { - "affiliation": "Netherlands eScience Center", - "name": "Verhoeven, Stefan" - } + {"affiliation": "Netherlands eScience Center", "name": "Spaaks, Jurriaan H."}, + {"affiliation": "Netherlands eScience Center", "name": "Klaver, Tom"}, + {"affiliation": "Netherlands eScience Center", "name": "Verhoeven, Stefan"}, ] def test_keywords(self): @@ -59,15 +49,14 @@ def test_publication_date(self): assert zenodo_object().add_publication_date().publication_date == "2018-05-09" def test_related_identifiers(self): - assert zenodo_object().add_related_identifiers().related_identifiers == [{ - "identifier": "10.5281/zenodo.1162057", - "relation": "isSupplementedBy", - "scheme": "doi" - }, { - "identifier": "https://github.com/citation-file-format/cffconvert", - "relation": "isSupplementedBy", - "scheme": "url" - }] + assert zenodo_object().add_related_identifiers().related_identifiers == [ + {"identifier": "10.5281/zenodo.1162057", "relation": "isSupplementedBy", "scheme": "doi"}, + { + "identifier": "https://github.com/citation-file-format/cffconvert", + "relation": "isSupplementedBy", + "scheme": "url", + }, + ] def test_title(self): assert zenodo_object().add_title().title == "cffconvert" diff --git a/tests/lib/cff_1_1_0/a/test_apalike_object.py b/tests/lib/cff_1_1_0/a/test_apalike_object.py index ec77a59e5..ea3237605 100644 --- a/tests/lib/cff_1_1_0/a/test_apalike_object.py +++ b/tests/lib/cff_1_1_0/a/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_as_string(self): actual_apalike = apalike_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "apalike.txt") diff --git a/tests/lib/cff_1_1_0/a/test_bibtex_object.py b/tests/lib/cff_1_1_0/a/test_bibtex_object.py index 3b00207bf..efde04bf3 100644 --- a/tests/lib/cff_1_1_0/a/test_bibtex_object.py +++ b/tests/lib/cff_1_1_0/a/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_as_string(self): actual_bibtex = bibtex_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "bibtex.bib") diff --git a/tests/lib/cff_1_1_0/a/test_codemeta_object.py b/tests/lib/cff_1_1_0/a/test_codemeta_object.py index 42f526ef8..e30599777 100644 --- a/tests/lib/cff_1_1_0/a/test_codemeta_object.py +++ b/tests/lib/cff_1_1_0/a/test_codemeta_object.py @@ -18,7 +18,6 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_as_string(self): actual_codemeta = codemeta_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "codemeta.json") @@ -27,32 +26,28 @@ def test_as_string(self): assert actual_codemeta == expected_codemeta def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": "Netherlands eScience Center" + assert codemeta_object().add_author().author == [ + { + "@type": "Person", + "affiliation": {"@type": "Organization", "name": "Netherlands eScience Center"}, + "email": "my@email.notexist", + "familyName": "Spaaks", + "givenName": "Jurriaan H.", }, - "email": "my@email.notexist", - "familyName": "Spaaks", - "givenName": "Jurriaan H." - }, { - "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": "Netherlands eScience Center" + { + "@type": "Person", + "affiliation": {"@type": "Organization", "name": "Netherlands eScience Center"}, + "familyName": "Klaver", + "givenName": "Tom", }, - "familyName": "Klaver", - "givenName": "Tom" - }] + ] def test_check_cffobj(self): codemeta_object().check_cffobj() # doesn't need an assert def test_code_repository(self): - assert codemeta_object().add_urls().code_repository == "https://github.com/citation-file-format" + \ - "/cffconvert" + assert codemeta_object().add_urls().code_repository == "https://github.com/citation-file-format" + "/cffconvert" def test_date_published(self): assert codemeta_object().add_date_published().date_published == "2018-01-16" diff --git a/tests/lib/cff_1_1_0/a/test_endnote_object.py b/tests/lib/cff_1_1_0/a/test_endnote_object.py index 5fc52c582..65fef918b 100644 --- a/tests/lib/cff_1_1_0/a/test_endnote_object.py +++ b/tests/lib/cff_1_1_0/a/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_as_string(self): actual_endnote = endnote_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "endnote.enw") diff --git a/tests/lib/cff_1_1_0/a/test_ris_object.py b/tests/lib/cff_1_1_0/a/test_ris_object.py index 3d04ee5d8..3c59dd727 100644 --- a/tests/lib/cff_1_1_0/a/test_ris_object.py +++ b/tests/lib/cff_1_1_0/a/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None @@ -43,8 +42,10 @@ def test_doi(self): assert ris_object().add_doi().doi == "DO - 10.5281/zenodo.1162057\n" def test_keywords(self): - assert ris_object().add_keywords().keywords == "KW - citation\nKW - bibliography\n" + \ - "KW - cff\nKW - CITATION.cff\n" + assert ( + ris_object().add_keywords().keywords + == "KW - citation\nKW - bibliography\n" + "KW - cff\nKW - CITATION.cff\n" + ) def test_title(self): assert ris_object().add_title().title == "TI - cffconvert\n" diff --git a/tests/lib/cff_1_1_0/a/test_schemaorg_object.py b/tests/lib/cff_1_1_0/a/test_schemaorg_object.py index 71e7871ff..589daf015 100644 --- a/tests/lib/cff_1_1_0/a/test_schemaorg_object.py +++ b/tests/lib/cff_1_1_0/a/test_schemaorg_object.py @@ -18,7 +18,6 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_as_string(self): actual_schemaorg = schemaorg_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "schemaorg.json") @@ -27,32 +26,30 @@ def test_as_string(self): assert actual_schemaorg == expected_schemaorg def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": "Netherlands eScience Center" + assert schemaorg_object().add_author().author == [ + { + "@type": "Person", + "affiliation": {"@type": "Organization", "name": "Netherlands eScience Center"}, + "email": "my@email.notexist", + "familyName": "Spaaks", + "givenName": "Jurriaan H.", }, - "email": "my@email.notexist", - "familyName": "Spaaks", - "givenName": "Jurriaan H." - }, { - "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": "Netherlands eScience Center" + { + "@type": "Person", + "affiliation": {"@type": "Organization", "name": "Netherlands eScience Center"}, + "familyName": "Klaver", + "givenName": "Tom", }, - "familyName": "Klaver", - "givenName": "Tom" - }] + ] def test_check_cffobj(self): schemaorg_object().check_cffobj() # doesn't need an assert def test_code_repository(self): - assert schemaorg_object().add_urls().code_repository == "https://github.com/citation-file-format" + \ - "/cffconvert" + assert ( + schemaorg_object().add_urls().code_repository == "https://github.com/citation-file-format" + "/cffconvert" + ) def test_contributor(self): assert schemaorg_object().add_contributor().contributor is None @@ -76,8 +73,7 @@ def test_name(self): assert schemaorg_object().add_name().name == "cffconvert" def test_url(self): - assert schemaorg_object().add_urls().url == "https://github.com/citation-file-format" + \ - "/cffconvert" + assert schemaorg_object().add_urls().url == "https://github.com/citation-file-format" + "/cffconvert" def test_version(self): assert schemaorg_object().add_version().version == "1.0.0" diff --git a/tests/lib/cff_1_1_0/a/test_zenodo_object.py b/tests/lib/cff_1_1_0/a/test_zenodo_object.py index ed637bd0b..8d2f9e949 100644 --- a/tests/lib/cff_1_1_0/a/test_zenodo_object.py +++ b/tests/lib/cff_1_1_0/a/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -35,14 +34,8 @@ def test_contributors(self): def test_creators(self): assert zenodo_object().add_creators().creators == [ - { - "affiliation": "Netherlands eScience Center", - "name": "Spaaks, Jurriaan H." - }, - { - "affiliation": "Netherlands eScience Center", - "name": "Klaver, Tom" - } + {"affiliation": "Netherlands eScience Center", "name": "Spaaks, Jurriaan H."}, + {"affiliation": "Netherlands eScience Center", "name": "Klaver, Tom"}, ] def test_keywords(self): @@ -55,15 +48,14 @@ def test_publication_date(self): assert zenodo_object().add_publication_date().publication_date == "2018-01-16" def test_related_identifiers(self): - assert zenodo_object().add_related_identifiers().related_identifiers == [{ - "identifier": "10.5281/zenodo.1162057", - "relation": "isSupplementedBy", - "scheme": "doi" - }, { - "identifier": "https://github.com/citation-file-format/cffconvert", - "relation": "isSupplementedBy", - "scheme": "url" - }] + assert zenodo_object().add_related_identifiers().related_identifiers == [ + {"identifier": "10.5281/zenodo.1162057", "relation": "isSupplementedBy", "scheme": "doi"}, + { + "identifier": "https://github.com/citation-file-format/cffconvert", + "relation": "isSupplementedBy", + "scheme": "url", + }, + ] def test_title(self): assert zenodo_object().add_title().title == "cffconvert" diff --git a/tests/lib/cff_1_1_0/b/test_apalike_object.py b/tests/lib/cff_1_1_0/b/test_apalike_object.py index ec77a59e5..ea3237605 100644 --- a/tests/lib/cff_1_1_0/b/test_apalike_object.py +++ b/tests/lib/cff_1_1_0/b/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_as_string(self): actual_apalike = apalike_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "apalike.txt") diff --git a/tests/lib/cff_1_1_0/b/test_bibtex_object.py b/tests/lib/cff_1_1_0/b/test_bibtex_object.py index 3b00207bf..efde04bf3 100644 --- a/tests/lib/cff_1_1_0/b/test_bibtex_object.py +++ b/tests/lib/cff_1_1_0/b/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_as_string(self): actual_bibtex = bibtex_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "bibtex.bib") diff --git a/tests/lib/cff_1_1_0/b/test_codemeta_object.py b/tests/lib/cff_1_1_0/b/test_codemeta_object.py index b3e7e452f..332575696 100644 --- a/tests/lib/cff_1_1_0/b/test_codemeta_object.py +++ b/tests/lib/cff_1_1_0/b/test_codemeta_object.py @@ -18,7 +18,6 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_as_string(self): actual_codemeta = codemeta_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "codemeta.json") @@ -27,31 +26,27 @@ def test_as_string(self): assert actual_codemeta == expected_codemeta def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": "Netherlands eScience Center" + assert codemeta_object().add_author().author == [ + { + "@type": "Person", + "affiliation": {"@type": "Organization", "name": "Netherlands eScience Center"}, + "familyName": "Spaaks", + "givenName": "Jurriaan H.", }, - "familyName": "Spaaks", - "givenName": "Jurriaan H." - }, { - "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": "Netherlands eScience Center" + { + "@type": "Person", + "affiliation": {"@type": "Organization", "name": "Netherlands eScience Center"}, + "familyName": "Klaver", + "givenName": "Tom", }, - "familyName": "Klaver", - "givenName": "Tom" - }] + ] def test_check_cffobj(self): codemeta_object().check_cffobj() # doesn't need an assert def test_code_repository(self): - assert codemeta_object().add_urls().code_repository == "https://github.com/citation-file-format" + \ - "/cffconvert" + assert codemeta_object().add_urls().code_repository == "https://github.com/citation-file-format" + "/cffconvert" def test_date_published(self): assert codemeta_object().add_date_published().date_published == "2018-01-16" diff --git a/tests/lib/cff_1_1_0/b/test_endnote_object.py b/tests/lib/cff_1_1_0/b/test_endnote_object.py index 5fc52c582..65fef918b 100644 --- a/tests/lib/cff_1_1_0/b/test_endnote_object.py +++ b/tests/lib/cff_1_1_0/b/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_as_string(self): actual_endnote = endnote_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "endnote.enw") diff --git a/tests/lib/cff_1_1_0/b/test_ris_object.py b/tests/lib/cff_1_1_0/b/test_ris_object.py index 3d04ee5d8..3c59dd727 100644 --- a/tests/lib/cff_1_1_0/b/test_ris_object.py +++ b/tests/lib/cff_1_1_0/b/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None @@ -43,8 +42,10 @@ def test_doi(self): assert ris_object().add_doi().doi == "DO - 10.5281/zenodo.1162057\n" def test_keywords(self): - assert ris_object().add_keywords().keywords == "KW - citation\nKW - bibliography\n" + \ - "KW - cff\nKW - CITATION.cff\n" + assert ( + ris_object().add_keywords().keywords + == "KW - citation\nKW - bibliography\n" + "KW - cff\nKW - CITATION.cff\n" + ) def test_title(self): assert ris_object().add_title().title == "TI - cffconvert\n" diff --git a/tests/lib/cff_1_1_0/b/test_schemaorg_object.py b/tests/lib/cff_1_1_0/b/test_schemaorg_object.py index 41d5e7d92..a3ecc9d79 100644 --- a/tests/lib/cff_1_1_0/b/test_schemaorg_object.py +++ b/tests/lib/cff_1_1_0/b/test_schemaorg_object.py @@ -18,7 +18,6 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_as_string(self): actual_schemaorg = schemaorg_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "schemaorg.json") @@ -27,31 +26,29 @@ def test_as_string(self): assert actual_schemaorg == expected_schemaorg def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": "Netherlands eScience Center" + assert schemaorg_object().add_author().author == [ + { + "@type": "Person", + "affiliation": {"@type": "Organization", "name": "Netherlands eScience Center"}, + "familyName": "Spaaks", + "givenName": "Jurriaan H.", }, - "familyName": "Spaaks", - "givenName": "Jurriaan H." - }, { - "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": "Netherlands eScience Center" + { + "@type": "Person", + "affiliation": {"@type": "Organization", "name": "Netherlands eScience Center"}, + "familyName": "Klaver", + "givenName": "Tom", }, - "familyName": "Klaver", - "givenName": "Tom" - }] + ] def test_check_cffobj(self): schemaorg_object().check_cffobj() # doesn't need an assert def test_code_repository(self): - assert schemaorg_object().add_urls().code_repository == "https://github.com/citation-file-format" + \ - "/cffconvert" + assert ( + schemaorg_object().add_urls().code_repository == "https://github.com/citation-file-format" + "/cffconvert" + ) def test_contributor(self): assert schemaorg_object().add_contributor().contributor is None @@ -75,8 +72,7 @@ def test_name(self): assert schemaorg_object().add_name().name == "cffconvert" def test_url(self): - assert schemaorg_object().add_urls().url == "https://github.com/citation-file-format" + \ - "/cffconvert" + assert schemaorg_object().add_urls().url == "https://github.com/citation-file-format" + "/cffconvert" def test_version(self): assert schemaorg_object().add_version().version == "1.0.0" diff --git a/tests/lib/cff_1_1_0/b/test_zenodo_object.py b/tests/lib/cff_1_1_0/b/test_zenodo_object.py index ed637bd0b..8d2f9e949 100644 --- a/tests/lib/cff_1_1_0/b/test_zenodo_object.py +++ b/tests/lib/cff_1_1_0/b/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -35,14 +34,8 @@ def test_contributors(self): def test_creators(self): assert zenodo_object().add_creators().creators == [ - { - "affiliation": "Netherlands eScience Center", - "name": "Spaaks, Jurriaan H." - }, - { - "affiliation": "Netherlands eScience Center", - "name": "Klaver, Tom" - } + {"affiliation": "Netherlands eScience Center", "name": "Spaaks, Jurriaan H."}, + {"affiliation": "Netherlands eScience Center", "name": "Klaver, Tom"}, ] def test_keywords(self): @@ -55,15 +48,14 @@ def test_publication_date(self): assert zenodo_object().add_publication_date().publication_date == "2018-01-16" def test_related_identifiers(self): - assert zenodo_object().add_related_identifiers().related_identifiers == [{ - "identifier": "10.5281/zenodo.1162057", - "relation": "isSupplementedBy", - "scheme": "doi" - }, { - "identifier": "https://github.com/citation-file-format/cffconvert", - "relation": "isSupplementedBy", - "scheme": "url" - }] + assert zenodo_object().add_related_identifiers().related_identifiers == [ + {"identifier": "10.5281/zenodo.1162057", "relation": "isSupplementedBy", "scheme": "doi"}, + { + "identifier": "https://github.com/citation-file-format/cffconvert", + "relation": "isSupplementedBy", + "scheme": "url", + }, + ] def test_title(self): assert zenodo_object().add_title().title == "cffconvert" diff --git a/tests/lib/cff_1_1_0/c/test_apalike_object.py b/tests/lib/cff_1_1_0/c/test_apalike_object.py index ec77a59e5..ea3237605 100644 --- a/tests/lib/cff_1_1_0/c/test_apalike_object.py +++ b/tests/lib/cff_1_1_0/c/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_as_string(self): actual_apalike = apalike_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "apalike.txt") diff --git a/tests/lib/cff_1_1_0/c/test_bibtex_object.py b/tests/lib/cff_1_1_0/c/test_bibtex_object.py index 3b00207bf..efde04bf3 100644 --- a/tests/lib/cff_1_1_0/c/test_bibtex_object.py +++ b/tests/lib/cff_1_1_0/c/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_as_string(self): actual_bibtex = bibtex_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "bibtex.bib") diff --git a/tests/lib/cff_1_1_0/c/test_codemeta_object.py b/tests/lib/cff_1_1_0/c/test_codemeta_object.py index b3e7e452f..332575696 100644 --- a/tests/lib/cff_1_1_0/c/test_codemeta_object.py +++ b/tests/lib/cff_1_1_0/c/test_codemeta_object.py @@ -18,7 +18,6 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_as_string(self): actual_codemeta = codemeta_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "codemeta.json") @@ -27,31 +26,27 @@ def test_as_string(self): assert actual_codemeta == expected_codemeta def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": "Netherlands eScience Center" + assert codemeta_object().add_author().author == [ + { + "@type": "Person", + "affiliation": {"@type": "Organization", "name": "Netherlands eScience Center"}, + "familyName": "Spaaks", + "givenName": "Jurriaan H.", }, - "familyName": "Spaaks", - "givenName": "Jurriaan H." - }, { - "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": "Netherlands eScience Center" + { + "@type": "Person", + "affiliation": {"@type": "Organization", "name": "Netherlands eScience Center"}, + "familyName": "Klaver", + "givenName": "Tom", }, - "familyName": "Klaver", - "givenName": "Tom" - }] + ] def test_check_cffobj(self): codemeta_object().check_cffobj() # doesn't need an assert def test_code_repository(self): - assert codemeta_object().add_urls().code_repository == "https://github.com/citation-file-format" + \ - "/cffconvert" + assert codemeta_object().add_urls().code_repository == "https://github.com/citation-file-format" + "/cffconvert" def test_date_published(self): assert codemeta_object().add_date_published().date_published == "2018-01-16" diff --git a/tests/lib/cff_1_1_0/c/test_endnote_object.py b/tests/lib/cff_1_1_0/c/test_endnote_object.py index 5fc52c582..65fef918b 100644 --- a/tests/lib/cff_1_1_0/c/test_endnote_object.py +++ b/tests/lib/cff_1_1_0/c/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_as_string(self): actual_endnote = endnote_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "endnote.enw") diff --git a/tests/lib/cff_1_1_0/c/test_ris_object.py b/tests/lib/cff_1_1_0/c/test_ris_object.py index 3d04ee5d8..3c59dd727 100644 --- a/tests/lib/cff_1_1_0/c/test_ris_object.py +++ b/tests/lib/cff_1_1_0/c/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None @@ -43,8 +42,10 @@ def test_doi(self): assert ris_object().add_doi().doi == "DO - 10.5281/zenodo.1162057\n" def test_keywords(self): - assert ris_object().add_keywords().keywords == "KW - citation\nKW - bibliography\n" + \ - "KW - cff\nKW - CITATION.cff\n" + assert ( + ris_object().add_keywords().keywords + == "KW - citation\nKW - bibliography\n" + "KW - cff\nKW - CITATION.cff\n" + ) def test_title(self): assert ris_object().add_title().title == "TI - cffconvert\n" diff --git a/tests/lib/cff_1_1_0/c/test_schemaorg_object.py b/tests/lib/cff_1_1_0/c/test_schemaorg_object.py index 41d5e7d92..a3ecc9d79 100644 --- a/tests/lib/cff_1_1_0/c/test_schemaorg_object.py +++ b/tests/lib/cff_1_1_0/c/test_schemaorg_object.py @@ -18,7 +18,6 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_as_string(self): actual_schemaorg = schemaorg_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "schemaorg.json") @@ -27,31 +26,29 @@ def test_as_string(self): assert actual_schemaorg == expected_schemaorg def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": "Netherlands eScience Center" + assert schemaorg_object().add_author().author == [ + { + "@type": "Person", + "affiliation": {"@type": "Organization", "name": "Netherlands eScience Center"}, + "familyName": "Spaaks", + "givenName": "Jurriaan H.", }, - "familyName": "Spaaks", - "givenName": "Jurriaan H." - }, { - "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": "Netherlands eScience Center" + { + "@type": "Person", + "affiliation": {"@type": "Organization", "name": "Netherlands eScience Center"}, + "familyName": "Klaver", + "givenName": "Tom", }, - "familyName": "Klaver", - "givenName": "Tom" - }] + ] def test_check_cffobj(self): schemaorg_object().check_cffobj() # doesn't need an assert def test_code_repository(self): - assert schemaorg_object().add_urls().code_repository == "https://github.com/citation-file-format" + \ - "/cffconvert" + assert ( + schemaorg_object().add_urls().code_repository == "https://github.com/citation-file-format" + "/cffconvert" + ) def test_contributor(self): assert schemaorg_object().add_contributor().contributor is None @@ -75,8 +72,7 @@ def test_name(self): assert schemaorg_object().add_name().name == "cffconvert" def test_url(self): - assert schemaorg_object().add_urls().url == "https://github.com/citation-file-format" + \ - "/cffconvert" + assert schemaorg_object().add_urls().url == "https://github.com/citation-file-format" + "/cffconvert" def test_version(self): assert schemaorg_object().add_version().version == "1.0.0" diff --git a/tests/lib/cff_1_1_0/c/test_zenodo_object.py b/tests/lib/cff_1_1_0/c/test_zenodo_object.py index a22e0b4ad..b19f9805a 100644 --- a/tests/lib/cff_1_1_0/c/test_zenodo_object.py +++ b/tests/lib/cff_1_1_0/c/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -35,14 +34,8 @@ def test_contributors(self): def test_creators(self): assert zenodo_object().add_creators().creators == [ - { - "affiliation": "Netherlands eScience Center", - "name": "Spaaks, Jurriaan H." - }, - { - "affiliation": "Netherlands eScience Center", - "name": "Klaver, Tom" - } + {"affiliation": "Netherlands eScience Center", "name": "Spaaks, Jurriaan H."}, + {"affiliation": "Netherlands eScience Center", "name": "Klaver, Tom"}, ] def test_keywords(self): @@ -55,19 +48,15 @@ def test_publication_date(self): assert zenodo_object().add_publication_date().publication_date == "2018-01-16" def test_related_identifiers(self): - assert zenodo_object().add_related_identifiers().related_identifiers == [{ - "identifier": "10.5281/zenodo.1162057", - "relation": "isSupplementedBy", - "scheme": "doi" - }, { - "identifier": "10.0000/FIXME", - "relation": "isSupplementedBy", - "scheme": "doi" - }, { - "identifier": "https://github.com/citation-file-format/cffconvert", - "relation": "isSupplementedBy", - "scheme": "url" - }] + assert zenodo_object().add_related_identifiers().related_identifiers == [ + {"identifier": "10.5281/zenodo.1162057", "relation": "isSupplementedBy", "scheme": "doi"}, + {"identifier": "10.0000/FIXME", "relation": "isSupplementedBy", "scheme": "doi"}, + { + "identifier": "https://github.com/citation-file-format/cffconvert", + "relation": "isSupplementedBy", + "scheme": "url", + }, + ] def test_title(self): assert zenodo_object().add_title().title == "cffconvert" diff --git a/tests/lib/cff_1_1_0/d/test_apalike_object.py b/tests/lib/cff_1_1_0/d/test_apalike_object.py index ec77a59e5..ea3237605 100644 --- a/tests/lib/cff_1_1_0/d/test_apalike_object.py +++ b/tests/lib/cff_1_1_0/d/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_as_string(self): actual_apalike = apalike_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "apalike.txt") diff --git a/tests/lib/cff_1_1_0/d/test_bibtex_object.py b/tests/lib/cff_1_1_0/d/test_bibtex_object.py index 3b00207bf..efde04bf3 100644 --- a/tests/lib/cff_1_1_0/d/test_bibtex_object.py +++ b/tests/lib/cff_1_1_0/d/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_as_string(self): actual_bibtex = bibtex_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "bibtex.bib") diff --git a/tests/lib/cff_1_1_0/d/test_codemeta_object.py b/tests/lib/cff_1_1_0/d/test_codemeta_object.py index b3e7e452f..332575696 100644 --- a/tests/lib/cff_1_1_0/d/test_codemeta_object.py +++ b/tests/lib/cff_1_1_0/d/test_codemeta_object.py @@ -18,7 +18,6 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_as_string(self): actual_codemeta = codemeta_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "codemeta.json") @@ -27,31 +26,27 @@ def test_as_string(self): assert actual_codemeta == expected_codemeta def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": "Netherlands eScience Center" + assert codemeta_object().add_author().author == [ + { + "@type": "Person", + "affiliation": {"@type": "Organization", "name": "Netherlands eScience Center"}, + "familyName": "Spaaks", + "givenName": "Jurriaan H.", }, - "familyName": "Spaaks", - "givenName": "Jurriaan H." - }, { - "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": "Netherlands eScience Center" + { + "@type": "Person", + "affiliation": {"@type": "Organization", "name": "Netherlands eScience Center"}, + "familyName": "Klaver", + "givenName": "Tom", }, - "familyName": "Klaver", - "givenName": "Tom" - }] + ] def test_check_cffobj(self): codemeta_object().check_cffobj() # doesn't need an assert def test_code_repository(self): - assert codemeta_object().add_urls().code_repository == "https://github.com/citation-file-format" + \ - "/cffconvert" + assert codemeta_object().add_urls().code_repository == "https://github.com/citation-file-format" + "/cffconvert" def test_date_published(self): assert codemeta_object().add_date_published().date_published == "2018-01-16" diff --git a/tests/lib/cff_1_1_0/d/test_endnote_object.py b/tests/lib/cff_1_1_0/d/test_endnote_object.py index 5fc52c582..65fef918b 100644 --- a/tests/lib/cff_1_1_0/d/test_endnote_object.py +++ b/tests/lib/cff_1_1_0/d/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_as_string(self): actual_endnote = endnote_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "endnote.enw") diff --git a/tests/lib/cff_1_1_0/d/test_ris_object.py b/tests/lib/cff_1_1_0/d/test_ris_object.py index 3d04ee5d8..3c59dd727 100644 --- a/tests/lib/cff_1_1_0/d/test_ris_object.py +++ b/tests/lib/cff_1_1_0/d/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None @@ -43,8 +42,10 @@ def test_doi(self): assert ris_object().add_doi().doi == "DO - 10.5281/zenodo.1162057\n" def test_keywords(self): - assert ris_object().add_keywords().keywords == "KW - citation\nKW - bibliography\n" + \ - "KW - cff\nKW - CITATION.cff\n" + assert ( + ris_object().add_keywords().keywords + == "KW - citation\nKW - bibliography\n" + "KW - cff\nKW - CITATION.cff\n" + ) def test_title(self): assert ris_object().add_title().title == "TI - cffconvert\n" diff --git a/tests/lib/cff_1_1_0/d/test_schemaorg_object.py b/tests/lib/cff_1_1_0/d/test_schemaorg_object.py index 41d5e7d92..a3ecc9d79 100644 --- a/tests/lib/cff_1_1_0/d/test_schemaorg_object.py +++ b/tests/lib/cff_1_1_0/d/test_schemaorg_object.py @@ -18,7 +18,6 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_as_string(self): actual_schemaorg = schemaorg_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "schemaorg.json") @@ -27,31 +26,29 @@ def test_as_string(self): assert actual_schemaorg == expected_schemaorg def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": "Netherlands eScience Center" + assert schemaorg_object().add_author().author == [ + { + "@type": "Person", + "affiliation": {"@type": "Organization", "name": "Netherlands eScience Center"}, + "familyName": "Spaaks", + "givenName": "Jurriaan H.", }, - "familyName": "Spaaks", - "givenName": "Jurriaan H." - }, { - "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": "Netherlands eScience Center" + { + "@type": "Person", + "affiliation": {"@type": "Organization", "name": "Netherlands eScience Center"}, + "familyName": "Klaver", + "givenName": "Tom", }, - "familyName": "Klaver", - "givenName": "Tom" - }] + ] def test_check_cffobj(self): schemaorg_object().check_cffobj() # doesn't need an assert def test_code_repository(self): - assert schemaorg_object().add_urls().code_repository == "https://github.com/citation-file-format" + \ - "/cffconvert" + assert ( + schemaorg_object().add_urls().code_repository == "https://github.com/citation-file-format" + "/cffconvert" + ) def test_contributor(self): assert schemaorg_object().add_contributor().contributor is None @@ -75,8 +72,7 @@ def test_name(self): assert schemaorg_object().add_name().name == "cffconvert" def test_url(self): - assert schemaorg_object().add_urls().url == "https://github.com/citation-file-format" + \ - "/cffconvert" + assert schemaorg_object().add_urls().url == "https://github.com/citation-file-format" + "/cffconvert" def test_version(self): assert schemaorg_object().add_version().version == "1.0.0" diff --git a/tests/lib/cff_1_1_0/d/test_zenodo_object.py b/tests/lib/cff_1_1_0/d/test_zenodo_object.py index a22e0b4ad..b19f9805a 100644 --- a/tests/lib/cff_1_1_0/d/test_zenodo_object.py +++ b/tests/lib/cff_1_1_0/d/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -35,14 +34,8 @@ def test_contributors(self): def test_creators(self): assert zenodo_object().add_creators().creators == [ - { - "affiliation": "Netherlands eScience Center", - "name": "Spaaks, Jurriaan H." - }, - { - "affiliation": "Netherlands eScience Center", - "name": "Klaver, Tom" - } + {"affiliation": "Netherlands eScience Center", "name": "Spaaks, Jurriaan H."}, + {"affiliation": "Netherlands eScience Center", "name": "Klaver, Tom"}, ] def test_keywords(self): @@ -55,19 +48,15 @@ def test_publication_date(self): assert zenodo_object().add_publication_date().publication_date == "2018-01-16" def test_related_identifiers(self): - assert zenodo_object().add_related_identifiers().related_identifiers == [{ - "identifier": "10.5281/zenodo.1162057", - "relation": "isSupplementedBy", - "scheme": "doi" - }, { - "identifier": "10.0000/FIXME", - "relation": "isSupplementedBy", - "scheme": "doi" - }, { - "identifier": "https://github.com/citation-file-format/cffconvert", - "relation": "isSupplementedBy", - "scheme": "url" - }] + assert zenodo_object().add_related_identifiers().related_identifiers == [ + {"identifier": "10.5281/zenodo.1162057", "relation": "isSupplementedBy", "scheme": "doi"}, + {"identifier": "10.0000/FIXME", "relation": "isSupplementedBy", "scheme": "doi"}, + { + "identifier": "https://github.com/citation-file-format/cffconvert", + "relation": "isSupplementedBy", + "scheme": "url", + }, + ] def test_title(self): assert zenodo_object().add_title().title == "cffconvert" diff --git a/tests/lib/cff_1_1_0/e/test_apalike_object.py b/tests/lib/cff_1_1_0/e/test_apalike_object.py index b50cb2ceb..dafa9e04a 100644 --- a/tests/lib/cff_1_1_0/e/test_apalike_object.py +++ b/tests/lib/cff_1_1_0/e/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_as_string(self): actual_apalike = apalike_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "apalike.txt") diff --git a/tests/lib/cff_1_1_0/e/test_bibtex_object.py b/tests/lib/cff_1_1_0/e/test_bibtex_object.py index 5364eb610..39aa59dd6 100644 --- a/tests/lib/cff_1_1_0/e/test_bibtex_object.py +++ b/tests/lib/cff_1_1_0/e/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_as_string(self): actual_bibtex = bibtex_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "bibtex.bib") @@ -27,8 +26,10 @@ def test_as_string(self): assert actual_bibtex == expected_bibtex def test_author(self): - assert bibtex_object().add_author().author == "author = {Spaaks, Jurriaan H. and " + \ - "Klaver, Tom and {mysteryauthor}}" + assert ( + bibtex_object().add_author().author + == "author = {Spaaks, Jurriaan H. and " + "Klaver, Tom and {mysteryauthor}}" + ) def test_check_cffobj(self): bibtex_object().check_cffobj() diff --git a/tests/lib/cff_1_1_0/e/test_codemeta_object.py b/tests/lib/cff_1_1_0/e/test_codemeta_object.py index e99cbf1aa..b7e324ec0 100644 --- a/tests/lib/cff_1_1_0/e/test_codemeta_object.py +++ b/tests/lib/cff_1_1_0/e/test_codemeta_object.py @@ -18,7 +18,6 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_as_string(self): actual_codemeta = codemeta_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "codemeta.json") @@ -27,35 +26,29 @@ def test_as_string(self): assert actual_codemeta == expected_codemeta def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": "Netherlands eScience Center" + assert codemeta_object().add_author().author == [ + { + "@type": "Person", + "affiliation": {"@type": "Organization", "name": "Netherlands eScience Center"}, + "alternateName": "jspaaks", + "familyName": "Spaaks", + "givenName": "Jurriaan H.", }, - "alternateName": "jspaaks", - "familyName": "Spaaks", - "givenName": "Jurriaan H." - }, { - "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": "Netherlands eScience Center" + { + "@type": "Person", + "affiliation": {"@type": "Organization", "name": "Netherlands eScience Center"}, + "familyName": "Klaver", + "givenName": "Tom", }, - "familyName": "Klaver", - "givenName": "Tom" - }, { - "@type": "Person", - "alternateName": "mysteryauthor" - }] + {"@type": "Person", "alternateName": "mysteryauthor"}, + ] def test_check_cffobj(self): codemeta_object().check_cffobj() # doesn't need an assert def test_code_repository(self): - assert codemeta_object().add_urls().code_repository == "https://github.com/citation-file-format" + \ - "/cffconvert" + assert codemeta_object().add_urls().code_repository == "https://github.com/citation-file-format" + "/cffconvert" def test_date_published(self): assert codemeta_object().add_date_published().date_published == "2018-01-16" diff --git a/tests/lib/cff_1_1_0/e/test_endnote_object.py b/tests/lib/cff_1_1_0/e/test_endnote_object.py index a179b48d6..feed04002 100644 --- a/tests/lib/cff_1_1_0/e/test_endnote_object.py +++ b/tests/lib/cff_1_1_0/e/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_as_string(self): actual_endnote = endnote_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "endnote.enw") diff --git a/tests/lib/cff_1_1_0/e/test_ris_object.py b/tests/lib/cff_1_1_0/e/test_ris_object.py index 3ae0dc85d..a3571e938 100644 --- a/tests/lib/cff_1_1_0/e/test_ris_object.py +++ b/tests/lib/cff_1_1_0/e/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None @@ -43,8 +42,10 @@ def test_doi(self): assert ris_object().add_doi().doi == "DO - 10.5281/zenodo.1162057\n" def test_keywords(self): - assert ris_object().add_keywords().keywords == "KW - citation\nKW - bibliography\n" + \ - "KW - cff\nKW - CITATION.cff\n" + assert ( + ris_object().add_keywords().keywords + == "KW - citation\nKW - bibliography\n" + "KW - cff\nKW - CITATION.cff\n" + ) def test_title(self): assert ris_object().add_title().title == "TI - cffconvert\n" diff --git a/tests/lib/cff_1_1_0/e/test_schemaorg_object.py b/tests/lib/cff_1_1_0/e/test_schemaorg_object.py index 2b12bb614..7d81c8a7e 100644 --- a/tests/lib/cff_1_1_0/e/test_schemaorg_object.py +++ b/tests/lib/cff_1_1_0/e/test_schemaorg_object.py @@ -18,7 +18,6 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_as_string(self): actual_schemaorg = schemaorg_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "schemaorg.json") @@ -27,35 +26,31 @@ def test_as_string(self): assert actual_schemaorg == expected_schemaorg def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": "Netherlands eScience Center" + assert schemaorg_object().add_author().author == [ + { + "@type": "Person", + "affiliation": {"@type": "Organization", "name": "Netherlands eScience Center"}, + "alternateName": "jspaaks", + "familyName": "Spaaks", + "givenName": "Jurriaan H.", }, - "alternateName": "jspaaks", - "familyName": "Spaaks", - "givenName": "Jurriaan H." - }, { - "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": "Netherlands eScience Center" + { + "@type": "Person", + "affiliation": {"@type": "Organization", "name": "Netherlands eScience Center"}, + "familyName": "Klaver", + "givenName": "Tom", }, - "familyName": "Klaver", - "givenName": "Tom" - }, { - "@type": "Person", - "alternateName": "mysteryauthor" - }] + {"@type": "Person", "alternateName": "mysteryauthor"}, + ] def test_check_cffobj(self): schemaorg_object().check_cffobj() # doesn't need an assert def test_code_repository(self): - assert schemaorg_object().add_urls().code_repository == "https://github.com/citation-file-format" + \ - "/cffconvert" + assert ( + schemaorg_object().add_urls().code_repository == "https://github.com/citation-file-format" + "/cffconvert" + ) def test_contributor(self): assert schemaorg_object().add_contributor().contributor is None @@ -79,8 +74,7 @@ def test_name(self): assert schemaorg_object().add_name().name == "cffconvert" def test_url(self): - assert schemaorg_object().add_urls().url == "https://github.com/citation-file-format" + \ - "/cffconvert" + assert schemaorg_object().add_urls().url == "https://github.com/citation-file-format" + "/cffconvert" def test_version(self): assert schemaorg_object().add_version().version == "1.0.0" diff --git a/tests/lib/cff_1_1_0/e/test_zenodo_object.py b/tests/lib/cff_1_1_0/e/test_zenodo_object.py index 6d3d2338d..fab815017 100644 --- a/tests/lib/cff_1_1_0/e/test_zenodo_object.py +++ b/tests/lib/cff_1_1_0/e/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -35,17 +34,9 @@ def test_contributors(self): def test_creators(self): assert zenodo_object().add_creators().creators == [ - { - "affiliation": "Netherlands eScience Center", - "name": "Spaaks, Jurriaan H." - }, - { - "affiliation": "Netherlands eScience Center", - "name": "Klaver, Tom" - }, - { - "name": "mysteryauthor" - } + {"affiliation": "Netherlands eScience Center", "name": "Spaaks, Jurriaan H."}, + {"affiliation": "Netherlands eScience Center", "name": "Klaver, Tom"}, + {"name": "mysteryauthor"}, ] def test_keywords(self): @@ -58,19 +49,15 @@ def test_publication_date(self): assert zenodo_object().add_publication_date().publication_date == "2018-01-16" def test_related_identifiers(self): - assert zenodo_object().add_related_identifiers().related_identifiers == [{ - "identifier": "10.5281/zenodo.1162057", - "relation": "isSupplementedBy", - "scheme": "doi" - }, { - "identifier": "10.0000/FIXME", - "relation": "isSupplementedBy", - "scheme": "doi" - }, { - "identifier": "https://github.com/citation-file-format/cffconvert", - "relation": "isSupplementedBy", - "scheme": "url" - }] + assert zenodo_object().add_related_identifiers().related_identifiers == [ + {"identifier": "10.5281/zenodo.1162057", "relation": "isSupplementedBy", "scheme": "doi"}, + {"identifier": "10.0000/FIXME", "relation": "isSupplementedBy", "scheme": "doi"}, + { + "identifier": "https://github.com/citation-file-format/cffconvert", + "relation": "isSupplementedBy", + "scheme": "url", + }, + ] def test_title(self): assert zenodo_object().add_title().title == "cffconvert" diff --git a/tests/lib/cff_1_1_0/f/test_apalike_object.py b/tests/lib/cff_1_1_0/f/test_apalike_object.py index ec77a59e5..ea3237605 100644 --- a/tests/lib/cff_1_1_0/f/test_apalike_object.py +++ b/tests/lib/cff_1_1_0/f/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_as_string(self): actual_apalike = apalike_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "apalike.txt") diff --git a/tests/lib/cff_1_1_0/f/test_bibtex_object.py b/tests/lib/cff_1_1_0/f/test_bibtex_object.py index 3b00207bf..efde04bf3 100644 --- a/tests/lib/cff_1_1_0/f/test_bibtex_object.py +++ b/tests/lib/cff_1_1_0/f/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_as_string(self): actual_bibtex = bibtex_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "bibtex.bib") diff --git a/tests/lib/cff_1_1_0/f/test_codemeta_object.py b/tests/lib/cff_1_1_0/f/test_codemeta_object.py index a6d4272d1..2d57fa73e 100644 --- a/tests/lib/cff_1_1_0/f/test_codemeta_object.py +++ b/tests/lib/cff_1_1_0/f/test_codemeta_object.py @@ -18,7 +18,6 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_as_string(self): actual_codemeta = codemeta_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "codemeta.json") @@ -27,32 +26,28 @@ def test_as_string(self): assert actual_codemeta == expected_codemeta def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": "Netherlands eScience Center" + assert codemeta_object().add_author().author == [ + { + "@type": "Person", + "affiliation": {"@type": "Organization", "name": "Netherlands eScience Center"}, + "alternateName": "jspaaks", + "familyName": "Spaaks", + "givenName": "Jurriaan H.", }, - "alternateName": "jspaaks", - "familyName": "Spaaks", - "givenName": "Jurriaan H." - }, { - "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": "Netherlands eScience Center" + { + "@type": "Person", + "affiliation": {"@type": "Organization", "name": "Netherlands eScience Center"}, + "familyName": "Klaver", + "givenName": "Tom", }, - "familyName": "Klaver", - "givenName": "Tom" - }] + ] def test_check_cffobj(self): codemeta_object().check_cffobj() # doesn't need an assert def test_code_repository(self): - assert codemeta_object().add_urls().code_repository == "https://github.com/citation-file-format" + \ - "/cffconvert" + assert codemeta_object().add_urls().code_repository == "https://github.com/citation-file-format" + "/cffconvert" def test_date_published(self): assert codemeta_object().add_date_published().date_published == "2018-01-16" diff --git a/tests/lib/cff_1_1_0/f/test_endnote_object.py b/tests/lib/cff_1_1_0/f/test_endnote_object.py index 5fc52c582..65fef918b 100644 --- a/tests/lib/cff_1_1_0/f/test_endnote_object.py +++ b/tests/lib/cff_1_1_0/f/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_as_string(self): actual_endnote = endnote_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "endnote.enw") diff --git a/tests/lib/cff_1_1_0/f/test_ris_object.py b/tests/lib/cff_1_1_0/f/test_ris_object.py index 3d04ee5d8..3c59dd727 100644 --- a/tests/lib/cff_1_1_0/f/test_ris_object.py +++ b/tests/lib/cff_1_1_0/f/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None @@ -43,8 +42,10 @@ def test_doi(self): assert ris_object().add_doi().doi == "DO - 10.5281/zenodo.1162057\n" def test_keywords(self): - assert ris_object().add_keywords().keywords == "KW - citation\nKW - bibliography\n" + \ - "KW - cff\nKW - CITATION.cff\n" + assert ( + ris_object().add_keywords().keywords + == "KW - citation\nKW - bibliography\n" + "KW - cff\nKW - CITATION.cff\n" + ) def test_title(self): assert ris_object().add_title().title == "TI - cffconvert\n" diff --git a/tests/lib/cff_1_1_0/f/test_schemaorg_object.py b/tests/lib/cff_1_1_0/f/test_schemaorg_object.py index 210c1bc14..afc2ba509 100644 --- a/tests/lib/cff_1_1_0/f/test_schemaorg_object.py +++ b/tests/lib/cff_1_1_0/f/test_schemaorg_object.py @@ -18,7 +18,6 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_as_string(self): actual_schemaorg = schemaorg_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "schemaorg.json") @@ -27,32 +26,30 @@ def test_as_string(self): assert actual_schemaorg == expected_schemaorg def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": "Netherlands eScience Center" + assert schemaorg_object().add_author().author == [ + { + "@type": "Person", + "affiliation": {"@type": "Organization", "name": "Netherlands eScience Center"}, + "alternateName": "jspaaks", + "familyName": "Spaaks", + "givenName": "Jurriaan H.", }, - "alternateName": "jspaaks", - "familyName": "Spaaks", - "givenName": "Jurriaan H." - }, { - "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": "Netherlands eScience Center" + { + "@type": "Person", + "affiliation": {"@type": "Organization", "name": "Netherlands eScience Center"}, + "familyName": "Klaver", + "givenName": "Tom", }, - "familyName": "Klaver", - "givenName": "Tom" - }] + ] def test_check_cffobj(self): schemaorg_object().check_cffobj() # doesn't need an assert def test_code_repository(self): - assert schemaorg_object().add_urls().code_repository == "https://github.com/citation-file-format" + \ - "/cffconvert" + assert ( + schemaorg_object().add_urls().code_repository == "https://github.com/citation-file-format" + "/cffconvert" + ) def test_contributor(self): assert schemaorg_object().add_contributor().contributor is None @@ -76,8 +73,7 @@ def test_name(self): assert schemaorg_object().add_name().name == "cffconvert" def test_url(self): - assert schemaorg_object().add_urls().url == "https://github.com/citation-file-format" + \ - "/cffconvert" + assert schemaorg_object().add_urls().url == "https://github.com/citation-file-format" + "/cffconvert" def test_version(self): assert schemaorg_object().add_version().version == "1.0.0" diff --git a/tests/lib/cff_1_1_0/f/test_zenodo_object.py b/tests/lib/cff_1_1_0/f/test_zenodo_object.py index a22e0b4ad..b19f9805a 100644 --- a/tests/lib/cff_1_1_0/f/test_zenodo_object.py +++ b/tests/lib/cff_1_1_0/f/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -35,14 +34,8 @@ def test_contributors(self): def test_creators(self): assert zenodo_object().add_creators().creators == [ - { - "affiliation": "Netherlands eScience Center", - "name": "Spaaks, Jurriaan H." - }, - { - "affiliation": "Netherlands eScience Center", - "name": "Klaver, Tom" - } + {"affiliation": "Netherlands eScience Center", "name": "Spaaks, Jurriaan H."}, + {"affiliation": "Netherlands eScience Center", "name": "Klaver, Tom"}, ] def test_keywords(self): @@ -55,19 +48,15 @@ def test_publication_date(self): assert zenodo_object().add_publication_date().publication_date == "2018-01-16" def test_related_identifiers(self): - assert zenodo_object().add_related_identifiers().related_identifiers == [{ - "identifier": "10.5281/zenodo.1162057", - "relation": "isSupplementedBy", - "scheme": "doi" - }, { - "identifier": "10.0000/FIXME", - "relation": "isSupplementedBy", - "scheme": "doi" - }, { - "identifier": "https://github.com/citation-file-format/cffconvert", - "relation": "isSupplementedBy", - "scheme": "url" - }] + assert zenodo_object().add_related_identifiers().related_identifiers == [ + {"identifier": "10.5281/zenodo.1162057", "relation": "isSupplementedBy", "scheme": "doi"}, + {"identifier": "10.0000/FIXME", "relation": "isSupplementedBy", "scheme": "doi"}, + { + "identifier": "https://github.com/citation-file-format/cffconvert", + "relation": "isSupplementedBy", + "scheme": "url", + }, + ] def test_title(self): assert zenodo_object().add_title().title == "cffconvert" diff --git a/tests/lib/cff_1_1_0/g/test_apalike_object.py b/tests/lib/cff_1_1_0/g/test_apalike_object.py index b50cb2ceb..dafa9e04a 100644 --- a/tests/lib/cff_1_1_0/g/test_apalike_object.py +++ b/tests/lib/cff_1_1_0/g/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_as_string(self): actual_apalike = apalike_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "apalike.txt") diff --git a/tests/lib/cff_1_1_0/g/test_bibtex_object.py b/tests/lib/cff_1_1_0/g/test_bibtex_object.py index 6bfd5d26d..39aa59dd6 100644 --- a/tests/lib/cff_1_1_0/g/test_bibtex_object.py +++ b/tests/lib/cff_1_1_0/g/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_as_string(self): actual_bibtex = bibtex_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "bibtex.bib") @@ -27,8 +26,10 @@ def test_as_string(self): assert actual_bibtex == expected_bibtex def test_author(self): - assert bibtex_object().add_author().author == "author = {Spaaks, Jurriaan H. and " +\ - "Klaver, Tom and {mysteryauthor}}" + assert ( + bibtex_object().add_author().author + == "author = {Spaaks, Jurriaan H. and " + "Klaver, Tom and {mysteryauthor}}" + ) def test_check_cffobj(self): bibtex_object().check_cffobj() diff --git a/tests/lib/cff_1_1_0/g/test_codemeta_object.py b/tests/lib/cff_1_1_0/g/test_codemeta_object.py index d4451a09d..53e18e598 100644 --- a/tests/lib/cff_1_1_0/g/test_codemeta_object.py +++ b/tests/lib/cff_1_1_0/g/test_codemeta_object.py @@ -18,7 +18,6 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_as_string(self): actual_codemeta = codemeta_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "codemeta.json") @@ -27,39 +26,33 @@ def test_as_string(self): assert actual_codemeta == expected_codemeta def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": "Netherlands eScience Center" + assert codemeta_object().add_author().author == [ + { + "@type": "Person", + "affiliation": {"@type": "Organization", "name": "Netherlands eScience Center"}, + "alternateName": "jspaaks", + "familyName": "Spaaks", + "givenName": "Jurriaan H.", }, - "alternateName": "jspaaks", - "familyName": "Spaaks", - "givenName": "Jurriaan H." - }, { - "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": "Netherlands eScience Center" + { + "@type": "Person", + "affiliation": {"@type": "Organization", "name": "Netherlands eScience Center"}, + "familyName": "Klaver", + "givenName": "Tom", }, - "familyName": "Klaver", - "givenName": "Tom" - }, { - "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": "MyAffiliation" + { + "@type": "Person", + "affiliation": {"@type": "Organization", "name": "MyAffiliation"}, + "alternateName": "mysteryauthor", }, - "alternateName": "mysteryauthor" - }] + ] def test_check_cffobj(self): codemeta_object().check_cffobj() # doesn't need an assert def test_code_repository(self): - assert codemeta_object().add_urls().code_repository == "https://github.com/citation-file-format" + \ - "/cffconvert" + assert codemeta_object().add_urls().code_repository == "https://github.com/citation-file-format" + "/cffconvert" def test_date_published(self): assert codemeta_object().add_date_published().date_published == "2018-01-16" diff --git a/tests/lib/cff_1_1_0/g/test_endnote_object.py b/tests/lib/cff_1_1_0/g/test_endnote_object.py index a179b48d6..feed04002 100644 --- a/tests/lib/cff_1_1_0/g/test_endnote_object.py +++ b/tests/lib/cff_1_1_0/g/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_as_string(self): actual_endnote = endnote_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "endnote.enw") diff --git a/tests/lib/cff_1_1_0/g/test_ris_object.py b/tests/lib/cff_1_1_0/g/test_ris_object.py index 3ae0dc85d..a3571e938 100644 --- a/tests/lib/cff_1_1_0/g/test_ris_object.py +++ b/tests/lib/cff_1_1_0/g/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None @@ -43,8 +42,10 @@ def test_doi(self): assert ris_object().add_doi().doi == "DO - 10.5281/zenodo.1162057\n" def test_keywords(self): - assert ris_object().add_keywords().keywords == "KW - citation\nKW - bibliography\n" + \ - "KW - cff\nKW - CITATION.cff\n" + assert ( + ris_object().add_keywords().keywords + == "KW - citation\nKW - bibliography\n" + "KW - cff\nKW - CITATION.cff\n" + ) def test_title(self): assert ris_object().add_title().title == "TI - cffconvert\n" diff --git a/tests/lib/cff_1_1_0/g/test_schemaorg_object.py b/tests/lib/cff_1_1_0/g/test_schemaorg_object.py index 428eb3e24..fc83dab38 100644 --- a/tests/lib/cff_1_1_0/g/test_schemaorg_object.py +++ b/tests/lib/cff_1_1_0/g/test_schemaorg_object.py @@ -18,7 +18,6 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_as_string(self): actual_schemaorg = schemaorg_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "schemaorg.json") @@ -27,39 +26,35 @@ def test_as_string(self): assert actual_schemaorg == expected_schemaorg def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": "Netherlands eScience Center" + assert schemaorg_object().add_author().author == [ + { + "@type": "Person", + "affiliation": {"@type": "Organization", "name": "Netherlands eScience Center"}, + "alternateName": "jspaaks", + "familyName": "Spaaks", + "givenName": "Jurriaan H.", }, - "alternateName": "jspaaks", - "familyName": "Spaaks", - "givenName": "Jurriaan H." - }, { - "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": "Netherlands eScience Center" + { + "@type": "Person", + "affiliation": {"@type": "Organization", "name": "Netherlands eScience Center"}, + "familyName": "Klaver", + "givenName": "Tom", }, - "familyName": "Klaver", - "givenName": "Tom" - }, { - "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": "MyAffiliation" + { + "@type": "Person", + "affiliation": {"@type": "Organization", "name": "MyAffiliation"}, + "alternateName": "mysteryauthor", }, - "alternateName": "mysteryauthor" - }] + ] def test_check_cffobj(self): schemaorg_object().check_cffobj() # doesn't need an assert def test_code_repository(self): - assert schemaorg_object().add_urls().code_repository == "https://github.com/citation-file-format" + \ - "/cffconvert" + assert ( + schemaorg_object().add_urls().code_repository == "https://github.com/citation-file-format" + "/cffconvert" + ) def test_contributor(self): assert schemaorg_object().add_contributor().contributor is None @@ -83,8 +78,7 @@ def test_name(self): assert schemaorg_object().add_name().name == "cffconvert" def test_url(self): - assert schemaorg_object().add_urls().url == "https://github.com/citation-file-format" + \ - "/cffconvert" + assert schemaorg_object().add_urls().url == "https://github.com/citation-file-format" + "/cffconvert" def test_version(self): assert schemaorg_object().add_version().version == "1.0.0" diff --git a/tests/lib/cff_1_1_0/g/test_zenodo_object.py b/tests/lib/cff_1_1_0/g/test_zenodo_object.py index 130ee89bb..e92f9c44d 100644 --- a/tests/lib/cff_1_1_0/g/test_zenodo_object.py +++ b/tests/lib/cff_1_1_0/g/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -35,18 +34,9 @@ def test_contributors(self): def test_creators(self): assert zenodo_object().add_creators().creators == [ - { - "affiliation": "Netherlands eScience Center", - "name": "Spaaks, Jurriaan H." - }, - { - "affiliation": "Netherlands eScience Center", - "name": "Klaver, Tom" - }, - { - "name": "mysteryauthor", - "affiliation": "MyAffiliation" - } + {"affiliation": "Netherlands eScience Center", "name": "Spaaks, Jurriaan H."}, + {"affiliation": "Netherlands eScience Center", "name": "Klaver, Tom"}, + {"name": "mysteryauthor", "affiliation": "MyAffiliation"}, ] def test_keywords(self): @@ -59,19 +49,15 @@ def test_publication_date(self): assert zenodo_object().add_publication_date().publication_date == "2018-01-16" def test_related_identifiers(self): - assert zenodo_object().add_related_identifiers().related_identifiers == [{ - "identifier": "10.5281/zenodo.1162057", - "relation": "isSupplementedBy", - "scheme": "doi" - }, { - "identifier": "10.0000/FIXME", - "relation": "isSupplementedBy", - "scheme": "doi" - }, { - "identifier": "https://github.com/citation-file-format/cffconvert", - "relation": "isSupplementedBy", - "scheme": "url" - }] + assert zenodo_object().add_related_identifiers().related_identifiers == [ + {"identifier": "10.5281/zenodo.1162057", "relation": "isSupplementedBy", "scheme": "doi"}, + {"identifier": "10.0000/FIXME", "relation": "isSupplementedBy", "scheme": "doi"}, + { + "identifier": "https://github.com/citation-file-format/cffconvert", + "relation": "isSupplementedBy", + "scheme": "url", + }, + ] def test_title(self): assert zenodo_object().add_title().title == "cffconvert" diff --git a/tests/lib/cff_1_1_0/h/test_apalike_object.py b/tests/lib/cff_1_1_0/h/test_apalike_object.py index d8d85d155..75e21848c 100644 --- a/tests/lib/cff_1_1_0/h/test_apalike_object.py +++ b/tests/lib/cff_1_1_0/h/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_as_string(self): actual_apalike = apalike_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "apalike.txt") diff --git a/tests/lib/cff_1_1_0/h/test_bibtex_object.py b/tests/lib/cff_1_1_0/h/test_bibtex_object.py index fd97f10da..8631c6c5b 100644 --- a/tests/lib/cff_1_1_0/h/test_bibtex_object.py +++ b/tests/lib/cff_1_1_0/h/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_as_string(self): actual_bibtex = bibtex_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "bibtex.bib") diff --git a/tests/lib/cff_1_1_0/h/test_codemeta_object.py b/tests/lib/cff_1_1_0/h/test_codemeta_object.py index 2c3b98e13..590ea6157 100644 --- a/tests/lib/cff_1_1_0/h/test_codemeta_object.py +++ b/tests/lib/cff_1_1_0/h/test_codemeta_object.py @@ -18,7 +18,6 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_as_string(self): actual_codemeta = codemeta_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "codemeta.json") @@ -27,23 +26,20 @@ def test_as_string(self): assert actual_codemeta == expected_codemeta def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": "Springsteen" + assert codemeta_object().add_author().author == [ + { + "@type": "Person", + "affiliation": {"@type": "Organization", "name": "Springsteen"}, + "familyName": "Van Zandt", + "givenName": "Steven", }, - "familyName": "Van Zandt", - "givenName": "Steven" - }, { - "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": "coverband" + { + "@type": "Person", + "affiliation": {"@type": "Organization", "name": "coverband"}, + "familyName": "van Zandt", + "givenName": "Steven", }, - "familyName": "van Zandt", - "givenName": "Steven" - }] + ] def test_check_cffobj(self): codemeta_object().check_cffobj() diff --git a/tests/lib/cff_1_1_0/h/test_endnote_object.py b/tests/lib/cff_1_1_0/h/test_endnote_object.py index b7f06a767..e15b28cb2 100644 --- a/tests/lib/cff_1_1_0/h/test_endnote_object.py +++ b/tests/lib/cff_1_1_0/h/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_as_string(self): actual_endnote = endnote_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "endnote.enw") diff --git a/tests/lib/cff_1_1_0/h/test_ris_object.py b/tests/lib/cff_1_1_0/h/test_ris_object.py index d102d9c46..b7579314f 100644 --- a/tests/lib/cff_1_1_0/h/test_ris_object.py +++ b/tests/lib/cff_1_1_0/h/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_1_0/h/test_schemaorg_object.py b/tests/lib/cff_1_1_0/h/test_schemaorg_object.py index 77764cd57..be9f4d9bb 100644 --- a/tests/lib/cff_1_1_0/h/test_schemaorg_object.py +++ b/tests/lib/cff_1_1_0/h/test_schemaorg_object.py @@ -18,7 +18,6 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_as_string(self): actual_schemaorg = schemaorg_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "schemaorg.json") @@ -27,23 +26,20 @@ def test_as_string(self): assert actual_schemaorg == expected_schemaorg def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": "Springsteen" + assert schemaorg_object().add_author().author == [ + { + "@type": "Person", + "affiliation": {"@type": "Organization", "name": "Springsteen"}, + "familyName": "Van Zandt", + "givenName": "Steven", }, - "familyName": "Van Zandt", - "givenName": "Steven" - }, { - "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": "coverband" + { + "@type": "Person", + "affiliation": {"@type": "Organization", "name": "coverband"}, + "familyName": "van Zandt", + "givenName": "Steven", }, - "familyName": "van Zandt", - "givenName": "Steven" - }] + ] def test_check_cffobj(self): schemaorg_object().check_cffobj() diff --git a/tests/lib/cff_1_1_0/h/test_zenodo_object.py b/tests/lib/cff_1_1_0/h/test_zenodo_object.py index 9ff8eba15..a32413075 100644 --- a/tests/lib/cff_1_1_0/h/test_zenodo_object.py +++ b/tests/lib/cff_1_1_0/h/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -35,14 +34,8 @@ def test_contributors(self): def test_creators(self): assert zenodo_object().add_creators().creators == [ - { - "affiliation": "Springsteen", - "name": "Van Zandt, Steven" - }, - { - "affiliation": "coverband", - "name": "van Zandt, Steven" - } + {"affiliation": "Springsteen", "name": "Van Zandt, Steven"}, + {"affiliation": "coverband", "name": "van Zandt, Steven"}, ] def test_keywords(self): diff --git a/tests/lib/cff_1_2_0/authors/one/GFA_AOE/test_apalike_object.py b/tests/lib/cff_1_2_0/authors/one/GFA_AOE/test_apalike_object.py index 231f7013d..5f48d7719 100644 --- a/tests/lib/cff_1_2_0/authors/one/GFA_AOE/test_apalike_object.py +++ b/tests/lib/cff_1_2_0/authors/one/GFA_AOE/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_author(self): assert apalike_object().add_author().author == "von der Spaaks Jr. J.H." diff --git a/tests/lib/cff_1_2_0/authors/one/GFA_AOE/test_bibtex_object.py b/tests/lib/cff_1_2_0/authors/one/GFA_AOE/test_bibtex_object.py index a8ab64265..57862d87a 100644 --- a/tests/lib/cff_1_2_0/authors/one/GFA_AOE/test_bibtex_object.py +++ b/tests/lib/cff_1_2_0/authors/one/GFA_AOE/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_author(self): assert bibtex_object().add_author().author == "author = {von der Spaaks Jr., Jurriaan H.}" diff --git a/tests/lib/cff_1_2_0/authors/one/GFA_AOE/test_codemeta_object.py b/tests/lib/cff_1_2_0/authors/one/GFA_AOE/test_codemeta_object.py index e8353f0b2..ca803f461 100644 --- a/tests/lib/cff_1_2_0/authors/one/GFA_AOE/test_codemeta_object.py +++ b/tests/lib/cff_1_2_0/authors/one/GFA_AOE/test_codemeta_object.py @@ -18,24 +18,22 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_check_cffobj(self): codemeta_object().check_cffobj() # doesn't need an assert def test_author(self): - assert codemeta_object().add_author().author == [{ - "@id": "https://orcid.org/0000-0002-7064-4069", - "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": "Netherlands eScience Center" - }, - "alternateName": "jspaaks", - "email": "my@email.notexist", - "familyName": "von der Spaaks Jr.", - "givenName": "Jurriaan H." - }] + assert codemeta_object().add_author().author == [ + { + "@id": "https://orcid.org/0000-0002-7064-4069", + "@type": "Person", + "affiliation": {"@type": "Organization", "name": "Netherlands eScience Center"}, + "alternateName": "jspaaks", + "email": "my@email.notexist", + "familyName": "von der Spaaks Jr.", + "givenName": "Jurriaan H.", + } + ] def test_code_repository(self): assert codemeta_object().add_urls().code_repository is None diff --git a/tests/lib/cff_1_2_0/authors/one/GFA_AOE/test_endnote_object.py b/tests/lib/cff_1_2_0/authors/one/GFA_AOE/test_endnote_object.py index af9953c05..2ebcbdd60 100644 --- a/tests/lib/cff_1_2_0/authors/one/GFA_AOE/test_endnote_object.py +++ b/tests/lib/cff_1_2_0/authors/one/GFA_AOE/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_check_cffobj(self): endnote_object().check_cffobj() # doesn't need an assert diff --git a/tests/lib/cff_1_2_0/authors/one/GFA_AOE/test_ris_object.py b/tests/lib/cff_1_2_0/authors/one/GFA_AOE/test_ris_object.py index 7b2d2a778..07e71136c 100644 --- a/tests/lib/cff_1_2_0/authors/one/GFA_AOE/test_ris_object.py +++ b/tests/lib/cff_1_2_0/authors/one/GFA_AOE/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_2_0/authors/one/GFA_AOE/test_schemaorg_object.py b/tests/lib/cff_1_2_0/authors/one/GFA_AOE/test_schemaorg_object.py index db9c8e5c4..c5f761545 100644 --- a/tests/lib/cff_1_2_0/authors/one/GFA_AOE/test_schemaorg_object.py +++ b/tests/lib/cff_1_2_0/authors/one/GFA_AOE/test_schemaorg_object.py @@ -18,24 +18,22 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_check_cffobj(self): schemaorg_object().check_cffobj() # doesn't need an assert def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@id": "https://orcid.org/0000-0002-7064-4069", - "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": "Netherlands eScience Center" - }, - "alternateName": "jspaaks", - "email": "my@email.notexist", - "familyName": "von der Spaaks Jr.", - "givenName": "Jurriaan H." - }] + assert schemaorg_object().add_author().author == [ + { + "@id": "https://orcid.org/0000-0002-7064-4069", + "@type": "Person", + "affiliation": {"@type": "Organization", "name": "Netherlands eScience Center"}, + "alternateName": "jspaaks", + "email": "my@email.notexist", + "familyName": "von der Spaaks Jr.", + "givenName": "Jurriaan H.", + } + ] def test_code_repository(self): assert schemaorg_object().add_urls().code_repository is None diff --git a/tests/lib/cff_1_2_0/authors/one/GFA_AOE/test_zenodo_object.py b/tests/lib/cff_1_2_0/authors/one/GFA_AOE/test_zenodo_object.py index 83c482127..ef4bddcbe 100644 --- a/tests/lib/cff_1_2_0/authors/one/GFA_AOE/test_zenodo_object.py +++ b/tests/lib/cff_1_2_0/authors/one/GFA_AOE/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -38,7 +37,7 @@ def test_creators(self): { "affiliation": "Netherlands eScience Center", "name": "von der Spaaks Jr., Jurriaan H.", - "orcid": "0000-0002-7064-4069" + "orcid": "0000-0002-7064-4069", } ] diff --git a/tests/lib/cff_1_2_0/authors/one/GFA_AO_/test_apalike_object.py b/tests/lib/cff_1_2_0/authors/one/GFA_AO_/test_apalike_object.py index 231f7013d..5f48d7719 100644 --- a/tests/lib/cff_1_2_0/authors/one/GFA_AO_/test_apalike_object.py +++ b/tests/lib/cff_1_2_0/authors/one/GFA_AO_/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_author(self): assert apalike_object().add_author().author == "von der Spaaks Jr. J.H." diff --git a/tests/lib/cff_1_2_0/authors/one/GFA_AO_/test_bibtex_object.py b/tests/lib/cff_1_2_0/authors/one/GFA_AO_/test_bibtex_object.py index a8ab64265..57862d87a 100644 --- a/tests/lib/cff_1_2_0/authors/one/GFA_AO_/test_bibtex_object.py +++ b/tests/lib/cff_1_2_0/authors/one/GFA_AO_/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_author(self): assert bibtex_object().add_author().author == "author = {von der Spaaks Jr., Jurriaan H.}" diff --git a/tests/lib/cff_1_2_0/authors/one/GFA_AO_/test_codemeta_object.py b/tests/lib/cff_1_2_0/authors/one/GFA_AO_/test_codemeta_object.py index 4752eefba..b0cdb9697 100644 --- a/tests/lib/cff_1_2_0/authors/one/GFA_AO_/test_codemeta_object.py +++ b/tests/lib/cff_1_2_0/authors/one/GFA_AO_/test_codemeta_object.py @@ -18,23 +18,21 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_check_cffobj(self): codemeta_object().check_cffobj() # doesn't need an assert def test_author(self): - assert codemeta_object().add_author().author == [{ - "@id": "https://orcid.org/0000-0002-7064-4069", - "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": "Netherlands eScience Center" - }, - "alternateName": "jspaaks", - "familyName": "von der Spaaks Jr.", - "givenName": "Jurriaan H." - }] + assert codemeta_object().add_author().author == [ + { + "@id": "https://orcid.org/0000-0002-7064-4069", + "@type": "Person", + "affiliation": {"@type": "Organization", "name": "Netherlands eScience Center"}, + "alternateName": "jspaaks", + "familyName": "von der Spaaks Jr.", + "givenName": "Jurriaan H.", + } + ] def test_code_repository(self): assert codemeta_object().add_urls().code_repository is None diff --git a/tests/lib/cff_1_2_0/authors/one/GFA_AO_/test_endnote_object.py b/tests/lib/cff_1_2_0/authors/one/GFA_AO_/test_endnote_object.py index af9953c05..2ebcbdd60 100644 --- a/tests/lib/cff_1_2_0/authors/one/GFA_AO_/test_endnote_object.py +++ b/tests/lib/cff_1_2_0/authors/one/GFA_AO_/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_check_cffobj(self): endnote_object().check_cffobj() # doesn't need an assert diff --git a/tests/lib/cff_1_2_0/authors/one/GFA_AO_/test_ris_object.py b/tests/lib/cff_1_2_0/authors/one/GFA_AO_/test_ris_object.py index 7b2d2a778..07e71136c 100644 --- a/tests/lib/cff_1_2_0/authors/one/GFA_AO_/test_ris_object.py +++ b/tests/lib/cff_1_2_0/authors/one/GFA_AO_/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_2_0/authors/one/GFA_AO_/test_schemaorg_object.py b/tests/lib/cff_1_2_0/authors/one/GFA_AO_/test_schemaorg_object.py index ed39367f5..d0eb4e2b0 100644 --- a/tests/lib/cff_1_2_0/authors/one/GFA_AO_/test_schemaorg_object.py +++ b/tests/lib/cff_1_2_0/authors/one/GFA_AO_/test_schemaorg_object.py @@ -18,23 +18,21 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_check_cffobj(self): schemaorg_object().check_cffobj() # doesn't need an assert def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@id": "https://orcid.org/0000-0002-7064-4069", - "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": "Netherlands eScience Center" - }, - "alternateName": "jspaaks", - "familyName": "von der Spaaks Jr.", - "givenName": "Jurriaan H." - }] + assert schemaorg_object().add_author().author == [ + { + "@id": "https://orcid.org/0000-0002-7064-4069", + "@type": "Person", + "affiliation": {"@type": "Organization", "name": "Netherlands eScience Center"}, + "alternateName": "jspaaks", + "familyName": "von der Spaaks Jr.", + "givenName": "Jurriaan H.", + } + ] def test_code_repository(self): assert schemaorg_object().add_urls().code_repository is None diff --git a/tests/lib/cff_1_2_0/authors/one/GFA_AO_/test_zenodo_object.py b/tests/lib/cff_1_2_0/authors/one/GFA_AO_/test_zenodo_object.py index 83c482127..ef4bddcbe 100644 --- a/tests/lib/cff_1_2_0/authors/one/GFA_AO_/test_zenodo_object.py +++ b/tests/lib/cff_1_2_0/authors/one/GFA_AO_/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -38,7 +37,7 @@ def test_creators(self): { "affiliation": "Netherlands eScience Center", "name": "von der Spaaks Jr., Jurriaan H.", - "orcid": "0000-0002-7064-4069" + "orcid": "0000-0002-7064-4069", } ] diff --git a/tests/lib/cff_1_2_0/authors/one/GFA____/test_apalike_object.py b/tests/lib/cff_1_2_0/authors/one/GFA____/test_apalike_object.py index c15eccbfc..3a89b6b7a 100644 --- a/tests/lib/cff_1_2_0/authors/one/GFA____/test_apalike_object.py +++ b/tests/lib/cff_1_2_0/authors/one/GFA____/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_as_string(self): actual_apalike = apalike_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "apalike.txt") diff --git a/tests/lib/cff_1_2_0/authors/one/GFA____/test_bibtex_object.py b/tests/lib/cff_1_2_0/authors/one/GFA____/test_bibtex_object.py index f86d86aca..7b4f38522 100644 --- a/tests/lib/cff_1_2_0/authors/one/GFA____/test_bibtex_object.py +++ b/tests/lib/cff_1_2_0/authors/one/GFA____/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_as_string(self): actual_bibtex = bibtex_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "bibtex.bib") diff --git a/tests/lib/cff_1_2_0/authors/one/GFA____/test_codemeta_object.py b/tests/lib/cff_1_2_0/authors/one/GFA____/test_codemeta_object.py index e70988a86..9412ac9be 100644 --- a/tests/lib/cff_1_2_0/authors/one/GFA____/test_codemeta_object.py +++ b/tests/lib/cff_1_2_0/authors/one/GFA____/test_codemeta_object.py @@ -18,7 +18,6 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_as_string(self): actual_codemeta = codemeta_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "codemeta.json") @@ -27,12 +26,9 @@ def test_as_string(self): assert actual_codemeta == expected_codemeta def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Person", - "alternateName": "Rafa", - "familyName": "van der Vaart III", - "givenName": "Rafael" - }] + assert codemeta_object().add_author().author == [ + {"@type": "Person", "alternateName": "Rafa", "familyName": "van der Vaart III", "givenName": "Rafael"} + ] def test_check_cffobj(self): codemeta_object().check_cffobj() diff --git a/tests/lib/cff_1_2_0/authors/one/GFA____/test_endnote_object.py b/tests/lib/cff_1_2_0/authors/one/GFA____/test_endnote_object.py index b3472f2da..23fc54ffa 100644 --- a/tests/lib/cff_1_2_0/authors/one/GFA____/test_endnote_object.py +++ b/tests/lib/cff_1_2_0/authors/one/GFA____/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_as_string(self): actual_endnote = endnote_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "endnote.enw") diff --git a/tests/lib/cff_1_2_0/authors/one/GFA____/test_ris_object.py b/tests/lib/cff_1_2_0/authors/one/GFA____/test_ris_object.py index 09cb1f08a..6a11937ef 100644 --- a/tests/lib/cff_1_2_0/authors/one/GFA____/test_ris_object.py +++ b/tests/lib/cff_1_2_0/authors/one/GFA____/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_2_0/authors/one/GFA____/test_schemaorg_object.py b/tests/lib/cff_1_2_0/authors/one/GFA____/test_schemaorg_object.py index 050e71c1b..8b9109967 100644 --- a/tests/lib/cff_1_2_0/authors/one/GFA____/test_schemaorg_object.py +++ b/tests/lib/cff_1_2_0/authors/one/GFA____/test_schemaorg_object.py @@ -18,7 +18,6 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_as_string(self): actual_schemaorg = schemaorg_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "schemaorg.json") @@ -27,12 +26,9 @@ def test_as_string(self): assert actual_schemaorg == expected_schemaorg def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Person", - "alternateName": "Rafa", - "familyName": "van der Vaart III", - "givenName": "Rafael" - }] + assert schemaorg_object().add_author().author == [ + {"@type": "Person", "alternateName": "Rafa", "familyName": "van der Vaart III", "givenName": "Rafael"} + ] def test_check_cffobj(self): schemaorg_object().check_cffobj() diff --git a/tests/lib/cff_1_2_0/authors/one/GFA____/test_zenodo_object.py b/tests/lib/cff_1_2_0/authors/one/GFA____/test_zenodo_object.py index 8d4da6d88..0918d5f23 100644 --- a/tests/lib/cff_1_2_0/authors/one/GFA____/test_zenodo_object.py +++ b/tests/lib/cff_1_2_0/authors/one/GFA____/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,11 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [ - { - "name": "van der Vaart III, Rafael" - } - ] + assert zenodo_object().add_creators().creators == [{"name": "van der Vaart III, Rafael"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None diff --git a/tests/lib/cff_1_2_0/authors/one/GF_____/test_apalike_object.py b/tests/lib/cff_1_2_0/authors/one/GF_____/test_apalike_object.py index c15eccbfc..3a89b6b7a 100644 --- a/tests/lib/cff_1_2_0/authors/one/GF_____/test_apalike_object.py +++ b/tests/lib/cff_1_2_0/authors/one/GF_____/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_as_string(self): actual_apalike = apalike_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "apalike.txt") diff --git a/tests/lib/cff_1_2_0/authors/one/GF_____/test_bibtex_object.py b/tests/lib/cff_1_2_0/authors/one/GF_____/test_bibtex_object.py index f86d86aca..7b4f38522 100644 --- a/tests/lib/cff_1_2_0/authors/one/GF_____/test_bibtex_object.py +++ b/tests/lib/cff_1_2_0/authors/one/GF_____/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_as_string(self): actual_bibtex = bibtex_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "bibtex.bib") diff --git a/tests/lib/cff_1_2_0/authors/one/GF_____/test_codemeta_object.py b/tests/lib/cff_1_2_0/authors/one/GF_____/test_codemeta_object.py index 7eb9743e7..502341166 100644 --- a/tests/lib/cff_1_2_0/authors/one/GF_____/test_codemeta_object.py +++ b/tests/lib/cff_1_2_0/authors/one/GF_____/test_codemeta_object.py @@ -18,7 +18,6 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_as_string(self): actual_codemeta = codemeta_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "codemeta.json") @@ -27,11 +26,9 @@ def test_as_string(self): assert actual_codemeta == expected_codemeta def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Person", - "familyName": "van der Vaart III", - "givenName": "Rafael" - }] + assert codemeta_object().add_author().author == [ + {"@type": "Person", "familyName": "van der Vaart III", "givenName": "Rafael"} + ] def test_check_cffobj(self): codemeta_object().check_cffobj() diff --git a/tests/lib/cff_1_2_0/authors/one/GF_____/test_endnote_object.py b/tests/lib/cff_1_2_0/authors/one/GF_____/test_endnote_object.py index b3472f2da..23fc54ffa 100644 --- a/tests/lib/cff_1_2_0/authors/one/GF_____/test_endnote_object.py +++ b/tests/lib/cff_1_2_0/authors/one/GF_____/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_as_string(self): actual_endnote = endnote_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "endnote.enw") diff --git a/tests/lib/cff_1_2_0/authors/one/GF_____/test_ris_object.py b/tests/lib/cff_1_2_0/authors/one/GF_____/test_ris_object.py index 09cb1f08a..6a11937ef 100644 --- a/tests/lib/cff_1_2_0/authors/one/GF_____/test_ris_object.py +++ b/tests/lib/cff_1_2_0/authors/one/GF_____/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_2_0/authors/one/GF_____/test_schemaorg_object.py b/tests/lib/cff_1_2_0/authors/one/GF_____/test_schemaorg_object.py index 08b003414..f77bb5830 100644 --- a/tests/lib/cff_1_2_0/authors/one/GF_____/test_schemaorg_object.py +++ b/tests/lib/cff_1_2_0/authors/one/GF_____/test_schemaorg_object.py @@ -18,7 +18,6 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_as_string(self): actual_schemaorg = schemaorg_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "schemaorg.json") @@ -27,11 +26,9 @@ def test_as_string(self): assert actual_schemaorg == expected_schemaorg def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Person", - "familyName": "van der Vaart III", - "givenName": "Rafael" - }] + assert schemaorg_object().add_author().author == [ + {"@type": "Person", "familyName": "van der Vaart III", "givenName": "Rafael"} + ] def test_check_cffobj(self): schemaorg_object().check_cffobj() diff --git a/tests/lib/cff_1_2_0/authors/one/GF_____/test_zenodo_object.py b/tests/lib/cff_1_2_0/authors/one/GF_____/test_zenodo_object.py index 8d4da6d88..0918d5f23 100644 --- a/tests/lib/cff_1_2_0/authors/one/GF_____/test_zenodo_object.py +++ b/tests/lib/cff_1_2_0/authors/one/GF_____/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,11 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [ - { - "name": "van der Vaart III, Rafael" - } - ] + assert zenodo_object().add_creators().creators == [{"name": "van der Vaart III, Rafael"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None diff --git a/tests/lib/cff_1_2_0/authors/one/G_A____/test_apalike_object.py b/tests/lib/cff_1_2_0/authors/one/G_A____/test_apalike_object.py index e49b003d2..b77e3b730 100644 --- a/tests/lib/cff_1_2_0/authors/one/G_A____/test_apalike_object.py +++ b/tests/lib/cff_1_2_0/authors/one/G_A____/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_as_string(self): actual_apalike = apalike_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "apalike.txt") diff --git a/tests/lib/cff_1_2_0/authors/one/G_A____/test_bibtex_object.py b/tests/lib/cff_1_2_0/authors/one/G_A____/test_bibtex_object.py index 7a3a69cb8..f5d8af29a 100644 --- a/tests/lib/cff_1_2_0/authors/one/G_A____/test_bibtex_object.py +++ b/tests/lib/cff_1_2_0/authors/one/G_A____/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_as_string(self): actual_bibtex = bibtex_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "bibtex.bib") diff --git a/tests/lib/cff_1_2_0/authors/one/G_A____/test_codemeta_object.py b/tests/lib/cff_1_2_0/authors/one/G_A____/test_codemeta_object.py index 4971a9482..cfa762b5c 100644 --- a/tests/lib/cff_1_2_0/authors/one/G_A____/test_codemeta_object.py +++ b/tests/lib/cff_1_2_0/authors/one/G_A____/test_codemeta_object.py @@ -18,7 +18,6 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_as_string(self): actual_codemeta = codemeta_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "codemeta.json") @@ -27,11 +26,9 @@ def test_as_string(self): assert actual_codemeta == expected_codemeta def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Person", - "alternateName": "Rafa", - "givenName": "Rafael" - }] + assert codemeta_object().add_author().author == [ + {"@type": "Person", "alternateName": "Rafa", "givenName": "Rafael"} + ] def test_check_cffobj(self): codemeta_object().check_cffobj() diff --git a/tests/lib/cff_1_2_0/authors/one/G_A____/test_endnote_object.py b/tests/lib/cff_1_2_0/authors/one/G_A____/test_endnote_object.py index b7394c44b..e3e0e3719 100644 --- a/tests/lib/cff_1_2_0/authors/one/G_A____/test_endnote_object.py +++ b/tests/lib/cff_1_2_0/authors/one/G_A____/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_as_string(self): actual_endnote = endnote_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "endnote.enw") diff --git a/tests/lib/cff_1_2_0/authors/one/G_A____/test_ris_object.py b/tests/lib/cff_1_2_0/authors/one/G_A____/test_ris_object.py index 3f6eea9de..299ef48d7 100644 --- a/tests/lib/cff_1_2_0/authors/one/G_A____/test_ris_object.py +++ b/tests/lib/cff_1_2_0/authors/one/G_A____/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_2_0/authors/one/G_A____/test_schemaorg_object.py b/tests/lib/cff_1_2_0/authors/one/G_A____/test_schemaorg_object.py index be73a05f5..61f0ae841 100644 --- a/tests/lib/cff_1_2_0/authors/one/G_A____/test_schemaorg_object.py +++ b/tests/lib/cff_1_2_0/authors/one/G_A____/test_schemaorg_object.py @@ -18,7 +18,6 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_as_string(self): actual_schemaorg = schemaorg_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "schemaorg.json") @@ -27,11 +26,9 @@ def test_as_string(self): assert actual_schemaorg == expected_schemaorg def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Person", - "alternateName": "Rafa", - "givenName": "Rafael" - }] + assert schemaorg_object().add_author().author == [ + {"@type": "Person", "alternateName": "Rafa", "givenName": "Rafael"} + ] def test_check_cffobj(self): schemaorg_object().check_cffobj() diff --git a/tests/lib/cff_1_2_0/authors/one/G_A____/test_zenodo_object.py b/tests/lib/cff_1_2_0/authors/one/G_A____/test_zenodo_object.py index 70447ec20..0335cdc4d 100644 --- a/tests/lib/cff_1_2_0/authors/one/G_A____/test_zenodo_object.py +++ b/tests/lib/cff_1_2_0/authors/one/G_A____/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,11 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [ - { - "name": "Rafael" - } - ] + assert zenodo_object().add_creators().creators == [{"name": "Rafael"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None diff --git a/tests/lib/cff_1_2_0/authors/one/G______/test_apalike_object.py b/tests/lib/cff_1_2_0/authors/one/G______/test_apalike_object.py index e49b003d2..b77e3b730 100644 --- a/tests/lib/cff_1_2_0/authors/one/G______/test_apalike_object.py +++ b/tests/lib/cff_1_2_0/authors/one/G______/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_as_string(self): actual_apalike = apalike_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "apalike.txt") diff --git a/tests/lib/cff_1_2_0/authors/one/G______/test_bibtex_object.py b/tests/lib/cff_1_2_0/authors/one/G______/test_bibtex_object.py index 7a3a69cb8..f5d8af29a 100644 --- a/tests/lib/cff_1_2_0/authors/one/G______/test_bibtex_object.py +++ b/tests/lib/cff_1_2_0/authors/one/G______/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_as_string(self): actual_bibtex = bibtex_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "bibtex.bib") diff --git a/tests/lib/cff_1_2_0/authors/one/G______/test_codemeta_object.py b/tests/lib/cff_1_2_0/authors/one/G______/test_codemeta_object.py index 9dd1343da..7a735339d 100644 --- a/tests/lib/cff_1_2_0/authors/one/G______/test_codemeta_object.py +++ b/tests/lib/cff_1_2_0/authors/one/G______/test_codemeta_object.py @@ -18,7 +18,6 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_as_string(self): actual_codemeta = codemeta_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "codemeta.json") @@ -27,10 +26,7 @@ def test_as_string(self): assert actual_codemeta == expected_codemeta def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Person", - "givenName": "Rafael" - }] + assert codemeta_object().add_author().author == [{"@type": "Person", "givenName": "Rafael"}] def test_check_cffobj(self): codemeta_object().check_cffobj() diff --git a/tests/lib/cff_1_2_0/authors/one/G______/test_endnote_object.py b/tests/lib/cff_1_2_0/authors/one/G______/test_endnote_object.py index b7394c44b..e3e0e3719 100644 --- a/tests/lib/cff_1_2_0/authors/one/G______/test_endnote_object.py +++ b/tests/lib/cff_1_2_0/authors/one/G______/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_as_string(self): actual_endnote = endnote_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "endnote.enw") diff --git a/tests/lib/cff_1_2_0/authors/one/G______/test_ris_object.py b/tests/lib/cff_1_2_0/authors/one/G______/test_ris_object.py index 3f6eea9de..299ef48d7 100644 --- a/tests/lib/cff_1_2_0/authors/one/G______/test_ris_object.py +++ b/tests/lib/cff_1_2_0/authors/one/G______/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_2_0/authors/one/G______/test_schemaorg_object.py b/tests/lib/cff_1_2_0/authors/one/G______/test_schemaorg_object.py index c5a74bfca..6a5c28fec 100644 --- a/tests/lib/cff_1_2_0/authors/one/G______/test_schemaorg_object.py +++ b/tests/lib/cff_1_2_0/authors/one/G______/test_schemaorg_object.py @@ -18,7 +18,6 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_as_string(self): actual_schemaorg = schemaorg_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "schemaorg.json") @@ -27,10 +26,7 @@ def test_as_string(self): assert actual_schemaorg == expected_schemaorg def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Person", - "givenName": "Rafael" - }] + assert schemaorg_object().add_author().author == [{"@type": "Person", "givenName": "Rafael"}] def test_check_cffobj(self): schemaorg_object().check_cffobj() diff --git a/tests/lib/cff_1_2_0/authors/one/G______/test_zenodo_object.py b/tests/lib/cff_1_2_0/authors/one/G______/test_zenodo_object.py index 70447ec20..0335cdc4d 100644 --- a/tests/lib/cff_1_2_0/authors/one/G______/test_zenodo_object.py +++ b/tests/lib/cff_1_2_0/authors/one/G______/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,11 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [ - { - "name": "Rafael" - } - ] + assert zenodo_object().add_creators().creators == [{"name": "Rafael"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None diff --git a/tests/lib/cff_1_2_0/authors/one/_FA____/test_apalike_object.py b/tests/lib/cff_1_2_0/authors/one/_FA____/test_apalike_object.py index 9e5b9d3e9..1dd1d06ec 100644 --- a/tests/lib/cff_1_2_0/authors/one/_FA____/test_apalike_object.py +++ b/tests/lib/cff_1_2_0/authors/one/_FA____/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_as_string(self): actual_apalike = apalike_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "apalike.txt") diff --git a/tests/lib/cff_1_2_0/authors/one/_FA____/test_bibtex_object.py b/tests/lib/cff_1_2_0/authors/one/_FA____/test_bibtex_object.py index 15a3688ea..a5cc7edd7 100644 --- a/tests/lib/cff_1_2_0/authors/one/_FA____/test_bibtex_object.py +++ b/tests/lib/cff_1_2_0/authors/one/_FA____/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_as_string(self): actual_bibtex = bibtex_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "bibtex.bib") diff --git a/tests/lib/cff_1_2_0/authors/one/_FA____/test_codemeta_object.py b/tests/lib/cff_1_2_0/authors/one/_FA____/test_codemeta_object.py index 971fad104..602fb5f4d 100644 --- a/tests/lib/cff_1_2_0/authors/one/_FA____/test_codemeta_object.py +++ b/tests/lib/cff_1_2_0/authors/one/_FA____/test_codemeta_object.py @@ -18,7 +18,6 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_as_string(self): actual_codemeta = codemeta_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "codemeta.json") @@ -27,11 +26,9 @@ def test_as_string(self): assert actual_codemeta == expected_codemeta def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Person", - "alternateName": "Rafa", - "familyName": "van der Vaart III" - }] + assert codemeta_object().add_author().author == [ + {"@type": "Person", "alternateName": "Rafa", "familyName": "van der Vaart III"} + ] def test_check_cffobj(self): codemeta_object().check_cffobj() diff --git a/tests/lib/cff_1_2_0/authors/one/_FA____/test_endnote_object.py b/tests/lib/cff_1_2_0/authors/one/_FA____/test_endnote_object.py index 179b51965..7f9997b2c 100644 --- a/tests/lib/cff_1_2_0/authors/one/_FA____/test_endnote_object.py +++ b/tests/lib/cff_1_2_0/authors/one/_FA____/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_as_string(self): actual_endnote = endnote_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "endnote.enw") diff --git a/tests/lib/cff_1_2_0/authors/one/_FA____/test_ris_object.py b/tests/lib/cff_1_2_0/authors/one/_FA____/test_ris_object.py index 02c9ab27b..cb34125a9 100644 --- a/tests/lib/cff_1_2_0/authors/one/_FA____/test_ris_object.py +++ b/tests/lib/cff_1_2_0/authors/one/_FA____/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_2_0/authors/one/_FA____/test_schemaorg_object.py b/tests/lib/cff_1_2_0/authors/one/_FA____/test_schemaorg_object.py index d33bc4067..396599084 100644 --- a/tests/lib/cff_1_2_0/authors/one/_FA____/test_schemaorg_object.py +++ b/tests/lib/cff_1_2_0/authors/one/_FA____/test_schemaorg_object.py @@ -18,7 +18,6 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_as_string(self): actual_schemaorg = schemaorg_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "schemaorg.json") @@ -27,11 +26,9 @@ def test_as_string(self): assert actual_schemaorg == expected_schemaorg def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Person", - "alternateName": "Rafa", - "familyName": "van der Vaart III" - }] + assert schemaorg_object().add_author().author == [ + {"@type": "Person", "alternateName": "Rafa", "familyName": "van der Vaart III"} + ] def test_check_cffobj(self): schemaorg_object().check_cffobj() diff --git a/tests/lib/cff_1_2_0/authors/one/_FA____/test_zenodo_object.py b/tests/lib/cff_1_2_0/authors/one/_FA____/test_zenodo_object.py index 4271d778c..44223c571 100644 --- a/tests/lib/cff_1_2_0/authors/one/_FA____/test_zenodo_object.py +++ b/tests/lib/cff_1_2_0/authors/one/_FA____/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,11 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [ - { - "name": "van der Vaart III" - } - ] + assert zenodo_object().add_creators().creators == [{"name": "van der Vaart III"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None diff --git a/tests/lib/cff_1_2_0/authors/one/_F_____/test_apalike_object.py b/tests/lib/cff_1_2_0/authors/one/_F_____/test_apalike_object.py index 9e5b9d3e9..1dd1d06ec 100644 --- a/tests/lib/cff_1_2_0/authors/one/_F_____/test_apalike_object.py +++ b/tests/lib/cff_1_2_0/authors/one/_F_____/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_as_string(self): actual_apalike = apalike_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "apalike.txt") diff --git a/tests/lib/cff_1_2_0/authors/one/_F_____/test_bibtex_object.py b/tests/lib/cff_1_2_0/authors/one/_F_____/test_bibtex_object.py index 15a3688ea..a5cc7edd7 100644 --- a/tests/lib/cff_1_2_0/authors/one/_F_____/test_bibtex_object.py +++ b/tests/lib/cff_1_2_0/authors/one/_F_____/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_as_string(self): actual_bibtex = bibtex_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "bibtex.bib") diff --git a/tests/lib/cff_1_2_0/authors/one/_F_____/test_codemeta_object.py b/tests/lib/cff_1_2_0/authors/one/_F_____/test_codemeta_object.py index 6024066cb..f8158d654 100644 --- a/tests/lib/cff_1_2_0/authors/one/_F_____/test_codemeta_object.py +++ b/tests/lib/cff_1_2_0/authors/one/_F_____/test_codemeta_object.py @@ -18,7 +18,6 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_as_string(self): actual_codemeta = codemeta_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "codemeta.json") @@ -27,10 +26,7 @@ def test_as_string(self): assert actual_codemeta == expected_codemeta def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Person", - "familyName": "van der Vaart III" - }] + assert codemeta_object().add_author().author == [{"@type": "Person", "familyName": "van der Vaart III"}] def test_check_cffobj(self): codemeta_object().check_cffobj() diff --git a/tests/lib/cff_1_2_0/authors/one/_F_____/test_endnote_object.py b/tests/lib/cff_1_2_0/authors/one/_F_____/test_endnote_object.py index 179b51965..7f9997b2c 100644 --- a/tests/lib/cff_1_2_0/authors/one/_F_____/test_endnote_object.py +++ b/tests/lib/cff_1_2_0/authors/one/_F_____/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_as_string(self): actual_endnote = endnote_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "endnote.enw") diff --git a/tests/lib/cff_1_2_0/authors/one/_F_____/test_ris_object.py b/tests/lib/cff_1_2_0/authors/one/_F_____/test_ris_object.py index 02c9ab27b..cb34125a9 100644 --- a/tests/lib/cff_1_2_0/authors/one/_F_____/test_ris_object.py +++ b/tests/lib/cff_1_2_0/authors/one/_F_____/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_2_0/authors/one/_F_____/test_schemaorg_object.py b/tests/lib/cff_1_2_0/authors/one/_F_____/test_schemaorg_object.py index 7c38c75b7..cd3f9ccb6 100644 --- a/tests/lib/cff_1_2_0/authors/one/_F_____/test_schemaorg_object.py +++ b/tests/lib/cff_1_2_0/authors/one/_F_____/test_schemaorg_object.py @@ -18,7 +18,6 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_as_string(self): actual_schemaorg = schemaorg_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "schemaorg.json") @@ -27,10 +26,7 @@ def test_as_string(self): assert actual_schemaorg == expected_schemaorg def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Person", - "familyName": "van der Vaart III" - }] + assert schemaorg_object().add_author().author == [{"@type": "Person", "familyName": "van der Vaart III"}] def test_check_cffobj(self): schemaorg_object().check_cffobj() diff --git a/tests/lib/cff_1_2_0/authors/one/_F_____/test_zenodo_object.py b/tests/lib/cff_1_2_0/authors/one/_F_____/test_zenodo_object.py index 4271d778c..44223c571 100644 --- a/tests/lib/cff_1_2_0/authors/one/_F_____/test_zenodo_object.py +++ b/tests/lib/cff_1_2_0/authors/one/_F_____/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,11 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [ - { - "name": "van der Vaart III" - } - ] + assert zenodo_object().add_creators().creators == [{"name": "van der Vaart III"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None diff --git a/tests/lib/cff_1_2_0/authors/one/__AN___/test_apalike_object.py b/tests/lib/cff_1_2_0/authors/one/__AN___/test_apalike_object.py index 83e2c26cb..3e5e7db5b 100644 --- a/tests/lib/cff_1_2_0/authors/one/__AN___/test_apalike_object.py +++ b/tests/lib/cff_1_2_0/authors/one/__AN___/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_as_string(self): actual_apalike = apalike_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "apalike.txt") diff --git a/tests/lib/cff_1_2_0/authors/one/__AN___/test_bibtex_object.py b/tests/lib/cff_1_2_0/authors/one/__AN___/test_bibtex_object.py index 25ef25a1a..955874d41 100644 --- a/tests/lib/cff_1_2_0/authors/one/__AN___/test_bibtex_object.py +++ b/tests/lib/cff_1_2_0/authors/one/__AN___/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_as_string(self): actual_bibtex = bibtex_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "bibtex.bib") diff --git a/tests/lib/cff_1_2_0/authors/one/__AN___/test_codemeta_object.py b/tests/lib/cff_1_2_0/authors/one/__AN___/test_codemeta_object.py index 2c54430a0..2363e493b 100644 --- a/tests/lib/cff_1_2_0/authors/one/__AN___/test_codemeta_object.py +++ b/tests/lib/cff_1_2_0/authors/one/__AN___/test_codemeta_object.py @@ -18,7 +18,6 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_as_string(self): actual_codemeta = codemeta_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "codemeta.json") @@ -27,11 +26,9 @@ def test_as_string(self): assert actual_codemeta == expected_codemeta def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Organization", - "alternateName": "Rafa", - "name": "The soccer team members" - }] + assert codemeta_object().add_author().author == [ + {"@type": "Organization", "alternateName": "Rafa", "name": "The soccer team members"} + ] def test_check_cffobj(self): codemeta_object().check_cffobj() diff --git a/tests/lib/cff_1_2_0/authors/one/__AN___/test_endnote_object.py b/tests/lib/cff_1_2_0/authors/one/__AN___/test_endnote_object.py index 63ba55360..d9d57e350 100644 --- a/tests/lib/cff_1_2_0/authors/one/__AN___/test_endnote_object.py +++ b/tests/lib/cff_1_2_0/authors/one/__AN___/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_as_string(self): actual_endnote = endnote_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "endnote.enw") diff --git a/tests/lib/cff_1_2_0/authors/one/__AN___/test_ris_object.py b/tests/lib/cff_1_2_0/authors/one/__AN___/test_ris_object.py index 7fd512768..ee631f326 100644 --- a/tests/lib/cff_1_2_0/authors/one/__AN___/test_ris_object.py +++ b/tests/lib/cff_1_2_0/authors/one/__AN___/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_2_0/authors/one/__AN___/test_schemaorg_object.py b/tests/lib/cff_1_2_0/authors/one/__AN___/test_schemaorg_object.py index fc3cb126e..5d1d881fa 100644 --- a/tests/lib/cff_1_2_0/authors/one/__AN___/test_schemaorg_object.py +++ b/tests/lib/cff_1_2_0/authors/one/__AN___/test_schemaorg_object.py @@ -18,7 +18,6 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_as_string(self): actual_schemaorg = schemaorg_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "schemaorg.json") @@ -27,11 +26,9 @@ def test_as_string(self): assert actual_schemaorg == expected_schemaorg def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "alternateName": "Rafa", - "name": "The soccer team members" - }] + assert schemaorg_object().add_author().author == [ + {"@type": "Organization", "alternateName": "Rafa", "name": "The soccer team members"} + ] def test_check_cffobj(self): schemaorg_object().check_cffobj() diff --git a/tests/lib/cff_1_2_0/authors/one/__AN___/test_zenodo_object.py b/tests/lib/cff_1_2_0/authors/one/__AN___/test_zenodo_object.py index 06c0b7e9a..aaf7993f6 100644 --- a/tests/lib/cff_1_2_0/authors/one/__AN___/test_zenodo_object.py +++ b/tests/lib/cff_1_2_0/authors/one/__AN___/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,11 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [ - { - "name": "The soccer team members" - } - ] + assert zenodo_object().add_creators().creators == [{"name": "The soccer team members"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None diff --git a/tests/lib/cff_1_2_0/authors/one/___N___/test_apalike_object.py b/tests/lib/cff_1_2_0/authors/one/___N___/test_apalike_object.py index 83e2c26cb..3e5e7db5b 100644 --- a/tests/lib/cff_1_2_0/authors/one/___N___/test_apalike_object.py +++ b/tests/lib/cff_1_2_0/authors/one/___N___/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_as_string(self): actual_apalike = apalike_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "apalike.txt") diff --git a/tests/lib/cff_1_2_0/authors/one/___N___/test_bibtex_object.py b/tests/lib/cff_1_2_0/authors/one/___N___/test_bibtex_object.py index 25ef25a1a..955874d41 100644 --- a/tests/lib/cff_1_2_0/authors/one/___N___/test_bibtex_object.py +++ b/tests/lib/cff_1_2_0/authors/one/___N___/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_as_string(self): actual_bibtex = bibtex_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "bibtex.bib") diff --git a/tests/lib/cff_1_2_0/authors/one/___N___/test_codemeta_object.py b/tests/lib/cff_1_2_0/authors/one/___N___/test_codemeta_object.py index 660311bbe..b54ace629 100644 --- a/tests/lib/cff_1_2_0/authors/one/___N___/test_codemeta_object.py +++ b/tests/lib/cff_1_2_0/authors/one/___N___/test_codemeta_object.py @@ -18,7 +18,6 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_as_string(self): actual_codemeta = codemeta_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "codemeta.json") @@ -27,10 +26,7 @@ def test_as_string(self): assert actual_codemeta == expected_codemeta def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Organization", - "name": "The soccer team members" - }] + assert codemeta_object().add_author().author == [{"@type": "Organization", "name": "The soccer team members"}] def test_check_cffobj(self): codemeta_object().check_cffobj() diff --git a/tests/lib/cff_1_2_0/authors/one/___N___/test_endnote_object.py b/tests/lib/cff_1_2_0/authors/one/___N___/test_endnote_object.py index 63ba55360..d9d57e350 100644 --- a/tests/lib/cff_1_2_0/authors/one/___N___/test_endnote_object.py +++ b/tests/lib/cff_1_2_0/authors/one/___N___/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_as_string(self): actual_endnote = endnote_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "endnote.enw") diff --git a/tests/lib/cff_1_2_0/authors/one/___N___/test_ris_object.py b/tests/lib/cff_1_2_0/authors/one/___N___/test_ris_object.py index 7fd512768..ee631f326 100644 --- a/tests/lib/cff_1_2_0/authors/one/___N___/test_ris_object.py +++ b/tests/lib/cff_1_2_0/authors/one/___N___/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_2_0/authors/one/___N___/test_schemaorg_object.py b/tests/lib/cff_1_2_0/authors/one/___N___/test_schemaorg_object.py index 9f1774f3e..09e63fd7a 100644 --- a/tests/lib/cff_1_2_0/authors/one/___N___/test_schemaorg_object.py +++ b/tests/lib/cff_1_2_0/authors/one/___N___/test_schemaorg_object.py @@ -18,7 +18,6 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_as_string(self): actual_schemaorg = schemaorg_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "schemaorg.json") @@ -27,10 +26,7 @@ def test_as_string(self): assert actual_schemaorg == expected_schemaorg def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "The soccer team members" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "The soccer team members"}] def test_check_cffobj(self): schemaorg_object().check_cffobj() diff --git a/tests/lib/cff_1_2_0/authors/one/___N___/test_zenodo_object.py b/tests/lib/cff_1_2_0/authors/one/___N___/test_zenodo_object.py index edeecfcd6..cf78bb4fa 100644 --- a/tests/lib/cff_1_2_0/authors/one/___N___/test_zenodo_object.py +++ b/tests/lib/cff_1_2_0/authors/one/___N___/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -30,11 +29,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [ - { - "name": "The soccer team members" - } - ] + assert zenodo_object().add_creators().creators == [{"name": "The soccer team members"}] def test_check_cffobj(self): zenodo_object().check_cffobj() diff --git a/tests/lib/cff_1_2_0/authors/two/GF_____/test_apalike_object.py b/tests/lib/cff_1_2_0/authors/two/GF_____/test_apalike_object.py index ac15fc131..4dcfb0a53 100644 --- a/tests/lib/cff_1_2_0/authors/two/GF_____/test_apalike_object.py +++ b/tests/lib/cff_1_2_0/authors/two/GF_____/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_as_string(self): actual_apalike = apalike_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "apalike.txt") diff --git a/tests/lib/cff_1_2_0/authors/two/GF_____/test_bibtex_object.py b/tests/lib/cff_1_2_0/authors/two/GF_____/test_bibtex_object.py index 548153b42..0d0eb09a0 100644 --- a/tests/lib/cff_1_2_0/authors/two/GF_____/test_bibtex_object.py +++ b/tests/lib/cff_1_2_0/authors/two/GF_____/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_as_string(self): actual_bibtex = bibtex_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "bibtex.bib") @@ -27,8 +26,10 @@ def test_as_string(self): assert actual_bibtex == expected_bibtex def test_author(self): - assert bibtex_object().add_author().author == "author = {van der Vaart III, Rafael and dos " + \ - "Santos Aveiro, Cristiano Ronaldo}" + assert ( + bibtex_object().add_author().author + == "author = {van der Vaart III, Rafael and dos " + "Santos Aveiro, Cristiano Ronaldo}" + ) def test_check_cffobj(self): bibtex_object().check_cffobj() diff --git a/tests/lib/cff_1_2_0/authors/two/GF_____/test_codemeta_object.py b/tests/lib/cff_1_2_0/authors/two/GF_____/test_codemeta_object.py index 1db3c67b9..3417efe90 100644 --- a/tests/lib/cff_1_2_0/authors/two/GF_____/test_codemeta_object.py +++ b/tests/lib/cff_1_2_0/authors/two/GF_____/test_codemeta_object.py @@ -18,7 +18,6 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_as_string(self): actual_codemeta = codemeta_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "codemeta.json") @@ -27,15 +26,10 @@ def test_as_string(self): assert actual_codemeta == expected_codemeta def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Person", - "familyName": "van der Vaart III", - "givenName": "Rafael" - }, { - "@type": "Person", - "familyName": "dos Santos Aveiro", - "givenName": "Cristiano Ronaldo" - }] + assert codemeta_object().add_author().author == [ + {"@type": "Person", "familyName": "van der Vaart III", "givenName": "Rafael"}, + {"@type": "Person", "familyName": "dos Santos Aveiro", "givenName": "Cristiano Ronaldo"}, + ] def test_check_cffobj(self): codemeta_object().check_cffobj() diff --git a/tests/lib/cff_1_2_0/authors/two/GF_____/test_endnote_object.py b/tests/lib/cff_1_2_0/authors/two/GF_____/test_endnote_object.py index ac1b17a1a..a634f72c5 100644 --- a/tests/lib/cff_1_2_0/authors/two/GF_____/test_endnote_object.py +++ b/tests/lib/cff_1_2_0/authors/two/GF_____/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_as_string(self): actual_endnote = endnote_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "endnote.enw") @@ -27,8 +26,10 @@ def test_as_string(self): assert actual_endnote == expected_endnote def test_author(self): - assert endnote_object().add_author().author == "%A van der Vaart III, Rafael\n" + \ - "%A dos Santos Aveiro, Cristiano Ronaldo\n" + assert ( + endnote_object().add_author().author + == "%A van der Vaart III, Rafael\n" + "%A dos Santos Aveiro, Cristiano Ronaldo\n" + ) def test_check_cffobj(self): endnote_object().check_cffobj() diff --git a/tests/lib/cff_1_2_0/authors/two/GF_____/test_ris_object.py b/tests/lib/cff_1_2_0/authors/two/GF_____/test_ris_object.py index 02cff2b79..8d4b49334 100644 --- a/tests/lib/cff_1_2_0/authors/two/GF_____/test_ris_object.py +++ b/tests/lib/cff_1_2_0/authors/two/GF_____/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None @@ -30,8 +29,10 @@ def test_as_string(self): assert actual_ris == expected_ris def test_author(self): - assert ris_object().add_author().author == "AU - van der Vaart III, Rafael\n" + \ - "AU - dos Santos Aveiro, Cristiano Ronaldo\n" + assert ( + ris_object().add_author().author + == "AU - van der Vaart III, Rafael\n" + "AU - dos Santos Aveiro, Cristiano Ronaldo\n" + ) def test_check_cffobj(self): ris_object().check_cffobj() diff --git a/tests/lib/cff_1_2_0/authors/two/GF_____/test_schemaorg_object.py b/tests/lib/cff_1_2_0/authors/two/GF_____/test_schemaorg_object.py index cb33a0184..741c26350 100644 --- a/tests/lib/cff_1_2_0/authors/two/GF_____/test_schemaorg_object.py +++ b/tests/lib/cff_1_2_0/authors/two/GF_____/test_schemaorg_object.py @@ -18,7 +18,6 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_as_string(self): actual_schemaorg = schemaorg_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "schemaorg.json") @@ -27,15 +26,10 @@ def test_as_string(self): assert actual_schemaorg == expected_schemaorg def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Person", - "familyName": "van der Vaart III", - "givenName": "Rafael" - }, { - "@type": "Person", - "familyName": "dos Santos Aveiro", - "givenName": "Cristiano Ronaldo" - }] + assert schemaorg_object().add_author().author == [ + {"@type": "Person", "familyName": "van der Vaart III", "givenName": "Rafael"}, + {"@type": "Person", "familyName": "dos Santos Aveiro", "givenName": "Cristiano Ronaldo"}, + ] def test_check_cffobj(self): schemaorg_object().check_cffobj() diff --git a/tests/lib/cff_1_2_0/authors/two/GF_____/test_zenodo_object.py b/tests/lib/cff_1_2_0/authors/two/GF_____/test_zenodo_object.py index cab00b043..3fe724173 100644 --- a/tests/lib/cff_1_2_0/authors/two/GF_____/test_zenodo_object.py +++ b/tests/lib/cff_1_2_0/authors/two/GF_____/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -35,12 +34,8 @@ def test_contributors(self): def test_creators(self): assert zenodo_object().add_creators().creators == [ - { - "name": "van der Vaart III, Rafael" - }, - { - "name": "dos Santos Aveiro, Cristiano Ronaldo" - } + {"name": "van der Vaart III, Rafael"}, + {"name": "dos Santos Aveiro, Cristiano Ronaldo"}, ] def test_keywords(self): diff --git a/tests/lib/cff_1_2_0/identifiers/DI/test_apalike_object.py b/tests/lib/cff_1_2_0/identifiers/DI/test_apalike_object.py index c037542c8..12cddbdc6 100644 --- a/tests/lib/cff_1_2_0/identifiers/DI/test_apalike_object.py +++ b/tests/lib/cff_1_2_0/identifiers/DI/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_as_string(self): actual_apalike = apalike_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "apalike.txt") diff --git a/tests/lib/cff_1_2_0/identifiers/DI/test_bibtex_object.py b/tests/lib/cff_1_2_0/identifiers/DI/test_bibtex_object.py index 38b464ece..102d5a576 100644 --- a/tests/lib/cff_1_2_0/identifiers/DI/test_bibtex_object.py +++ b/tests/lib/cff_1_2_0/identifiers/DI/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_as_string(self): actual_bibtex = bibtex_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "bibtex.bib") diff --git a/tests/lib/cff_1_2_0/identifiers/DI/test_codemeta_object.py b/tests/lib/cff_1_2_0/identifiers/DI/test_codemeta_object.py index 4401cfce6..d0a079130 100644 --- a/tests/lib/cff_1_2_0/identifiers/DI/test_codemeta_object.py +++ b/tests/lib/cff_1_2_0/identifiers/DI/test_codemeta_object.py @@ -18,7 +18,6 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_as_string(self): actual_codemeta = codemeta_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "codemeta.json") @@ -27,10 +26,7 @@ def test_as_string(self): assert actual_codemeta == expected_codemeta def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert codemeta_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_check_cffobj(self): codemeta_object().check_cffobj() diff --git a/tests/lib/cff_1_2_0/identifiers/DI/test_endnote_object.py b/tests/lib/cff_1_2_0/identifiers/DI/test_endnote_object.py index 00302b88a..9dedd2e3d 100644 --- a/tests/lib/cff_1_2_0/identifiers/DI/test_endnote_object.py +++ b/tests/lib/cff_1_2_0/identifiers/DI/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_as_string(self): actual_endnote = endnote_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "endnote.enw") diff --git a/tests/lib/cff_1_2_0/identifiers/DI/test_ris_object.py b/tests/lib/cff_1_2_0/identifiers/DI/test_ris_object.py index c73d44a6d..def0fd70b 100644 --- a/tests/lib/cff_1_2_0/identifiers/DI/test_ris_object.py +++ b/tests/lib/cff_1_2_0/identifiers/DI/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_2_0/identifiers/DI/test_schemaorg_object.py b/tests/lib/cff_1_2_0/identifiers/DI/test_schemaorg_object.py index d11bf4490..c45e21c65 100644 --- a/tests/lib/cff_1_2_0/identifiers/DI/test_schemaorg_object.py +++ b/tests/lib/cff_1_2_0/identifiers/DI/test_schemaorg_object.py @@ -18,7 +18,6 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_as_string(self): actual_schemaorg = schemaorg_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "schemaorg.json") @@ -27,10 +26,7 @@ def test_as_string(self): assert actual_schemaorg == expected_schemaorg def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_check_cffobj(self): schemaorg_object().check_cffobj() diff --git a/tests/lib/cff_1_2_0/identifiers/DI/test_zenodo_object.py b/tests/lib/cff_1_2_0/identifiers/DI/test_zenodo_object.py index b6d760a81..677a6ea95 100644 --- a/tests/lib/cff_1_2_0/identifiers/DI/test_zenodo_object.py +++ b/tests/lib/cff_1_2_0/identifiers/DI/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,11 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [ - { - "name": "Test author" - } - ] + assert zenodo_object().add_creators().creators == [{"name": "Test author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None @@ -50,15 +45,10 @@ def test_publication_date(self): assert zenodo_object().add_publication_date().publication_date is None def test_related_identifiers(self): - assert zenodo_object().add_related_identifiers().related_identifiers == [{ - "identifier": "10.0000/from-identifiers", - "relation": "isSupplementedBy", - "scheme": "doi" - }, { - "identifier": "10.0000/from-doi", - "relation": "isSupplementedBy", - "scheme": "doi" - }] + assert zenodo_object().add_related_identifiers().related_identifiers == [ + {"identifier": "10.0000/from-identifiers", "relation": "isSupplementedBy", "scheme": "doi"}, + {"identifier": "10.0000/from-doi", "relation": "isSupplementedBy", "scheme": "doi"}, + ] def test_title(self): assert zenodo_object().add_title().title == "Test title" diff --git a/tests/lib/cff_1_2_0/identifiers/DI_duplicate_values/test_apalike_object.py b/tests/lib/cff_1_2_0/identifiers/DI_duplicate_values/test_apalike_object.py index 3ff231988..9e6b3138f 100644 --- a/tests/lib/cff_1_2_0/identifiers/DI_duplicate_values/test_apalike_object.py +++ b/tests/lib/cff_1_2_0/identifiers/DI_duplicate_values/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_as_string(self): actual_apalike = apalike_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "apalike.txt") diff --git a/tests/lib/cff_1_2_0/identifiers/DI_duplicate_values/test_bibtex_object.py b/tests/lib/cff_1_2_0/identifiers/DI_duplicate_values/test_bibtex_object.py index aa1715c5b..69f5d3096 100644 --- a/tests/lib/cff_1_2_0/identifiers/DI_duplicate_values/test_bibtex_object.py +++ b/tests/lib/cff_1_2_0/identifiers/DI_duplicate_values/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_as_string(self): actual_bibtex = bibtex_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "bibtex.bib") diff --git a/tests/lib/cff_1_2_0/identifiers/DI_duplicate_values/test_codemeta_object.py b/tests/lib/cff_1_2_0/identifiers/DI_duplicate_values/test_codemeta_object.py index 9912286a4..bbf9ae485 100644 --- a/tests/lib/cff_1_2_0/identifiers/DI_duplicate_values/test_codemeta_object.py +++ b/tests/lib/cff_1_2_0/identifiers/DI_duplicate_values/test_codemeta_object.py @@ -18,7 +18,6 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_as_string(self): actual_codemeta = codemeta_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "codemeta.json") @@ -27,10 +26,7 @@ def test_as_string(self): assert actual_codemeta == expected_codemeta def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert codemeta_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_check_cffobj(self): codemeta_object().check_cffobj() diff --git a/tests/lib/cff_1_2_0/identifiers/DI_duplicate_values/test_endnote_object.py b/tests/lib/cff_1_2_0/identifiers/DI_duplicate_values/test_endnote_object.py index 202b0d225..c130635f0 100644 --- a/tests/lib/cff_1_2_0/identifiers/DI_duplicate_values/test_endnote_object.py +++ b/tests/lib/cff_1_2_0/identifiers/DI_duplicate_values/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_as_string(self): actual_endnote = endnote_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "endnote.enw") diff --git a/tests/lib/cff_1_2_0/identifiers/DI_duplicate_values/test_ris_object.py b/tests/lib/cff_1_2_0/identifiers/DI_duplicate_values/test_ris_object.py index e44878f8f..b9c4b5a0c 100644 --- a/tests/lib/cff_1_2_0/identifiers/DI_duplicate_values/test_ris_object.py +++ b/tests/lib/cff_1_2_0/identifiers/DI_duplicate_values/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_2_0/identifiers/DI_duplicate_values/test_schemaorg_object.py b/tests/lib/cff_1_2_0/identifiers/DI_duplicate_values/test_schemaorg_object.py index f73d1e010..7e764311c 100644 --- a/tests/lib/cff_1_2_0/identifiers/DI_duplicate_values/test_schemaorg_object.py +++ b/tests/lib/cff_1_2_0/identifiers/DI_duplicate_values/test_schemaorg_object.py @@ -18,7 +18,6 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_as_string(self): actual_schemaorg = schemaorg_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "schemaorg.json") @@ -27,10 +26,7 @@ def test_as_string(self): assert actual_schemaorg == expected_schemaorg def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_check_cffobj(self): schemaorg_object().check_cffobj() diff --git a/tests/lib/cff_1_2_0/identifiers/DI_duplicate_values/test_zenodo_object.py b/tests/lib/cff_1_2_0/identifiers/DI_duplicate_values/test_zenodo_object.py index dd32181a3..c8e115121 100644 --- a/tests/lib/cff_1_2_0/identifiers/DI_duplicate_values/test_zenodo_object.py +++ b/tests/lib/cff_1_2_0/identifiers/DI_duplicate_values/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,11 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [ - { - "name": "Test author" - } - ] + assert zenodo_object().add_creators().creators == [{"name": "Test author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None @@ -50,11 +45,9 @@ def test_publication_date(self): assert zenodo_object().add_publication_date().publication_date is None def test_related_identifiers(self): - assert zenodo_object().add_related_identifiers().related_identifiers == [{ - "identifier": "10.0000/some-doi", - "relation": "isSupplementedBy", - "scheme": "doi" - }] + assert zenodo_object().add_related_identifiers().related_identifiers == [ + {"identifier": "10.0000/some-doi", "relation": "isSupplementedBy", "scheme": "doi"} + ] def test_title(self): assert zenodo_object().add_title().title == "Test title" diff --git a/tests/lib/cff_1_2_0/identifiers/D_/test_apalike_object.py b/tests/lib/cff_1_2_0/identifiers/D_/test_apalike_object.py index 1dc63363d..1be6e804b 100644 --- a/tests/lib/cff_1_2_0/identifiers/D_/test_apalike_object.py +++ b/tests/lib/cff_1_2_0/identifiers/D_/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_as_string(self): actual_apalike = apalike_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "apalike.txt") diff --git a/tests/lib/cff_1_2_0/identifiers/D_/test_bibtex_object.py b/tests/lib/cff_1_2_0/identifiers/D_/test_bibtex_object.py index ff803398e..d7ca18827 100644 --- a/tests/lib/cff_1_2_0/identifiers/D_/test_bibtex_object.py +++ b/tests/lib/cff_1_2_0/identifiers/D_/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_as_string(self): actual_bibtex = bibtex_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "bibtex.bib") diff --git a/tests/lib/cff_1_2_0/identifiers/D_/test_codemeta_object.py b/tests/lib/cff_1_2_0/identifiers/D_/test_codemeta_object.py index 058f33878..dc11edecf 100644 --- a/tests/lib/cff_1_2_0/identifiers/D_/test_codemeta_object.py +++ b/tests/lib/cff_1_2_0/identifiers/D_/test_codemeta_object.py @@ -18,7 +18,6 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_as_string(self): actual_codemeta = codemeta_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "codemeta.json") @@ -27,10 +26,7 @@ def test_as_string(self): assert actual_codemeta == expected_codemeta def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert codemeta_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_check_cffobj(self): codemeta_object().check_cffobj() diff --git a/tests/lib/cff_1_2_0/identifiers/D_/test_endnote_object.py b/tests/lib/cff_1_2_0/identifiers/D_/test_endnote_object.py index fb47c0809..4bc7c8920 100644 --- a/tests/lib/cff_1_2_0/identifiers/D_/test_endnote_object.py +++ b/tests/lib/cff_1_2_0/identifiers/D_/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_as_string(self): actual_endnote = endnote_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "endnote.enw") diff --git a/tests/lib/cff_1_2_0/identifiers/D_/test_ris_object.py b/tests/lib/cff_1_2_0/identifiers/D_/test_ris_object.py index 1fb50a535..ebb3e2f4c 100644 --- a/tests/lib/cff_1_2_0/identifiers/D_/test_ris_object.py +++ b/tests/lib/cff_1_2_0/identifiers/D_/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_2_0/identifiers/D_/test_schemaorg_object.py b/tests/lib/cff_1_2_0/identifiers/D_/test_schemaorg_object.py index c6bd579c1..df19924ba 100644 --- a/tests/lib/cff_1_2_0/identifiers/D_/test_schemaorg_object.py +++ b/tests/lib/cff_1_2_0/identifiers/D_/test_schemaorg_object.py @@ -18,7 +18,6 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_as_string(self): actual_schemaorg = schemaorg_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "schemaorg.json") @@ -27,10 +26,7 @@ def test_as_string(self): assert actual_schemaorg == expected_schemaorg def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_check_cffobj(self): schemaorg_object().check_cffobj() diff --git a/tests/lib/cff_1_2_0/identifiers/D_/test_zenodo_object.py b/tests/lib/cff_1_2_0/identifiers/D_/test_zenodo_object.py index 02971b2c8..6ead252c2 100644 --- a/tests/lib/cff_1_2_0/identifiers/D_/test_zenodo_object.py +++ b/tests/lib/cff_1_2_0/identifiers/D_/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,11 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [ - { - "name": "Test author" - } - ] + assert zenodo_object().add_creators().creators == [{"name": "Test author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None @@ -50,11 +45,9 @@ def test_publication_date(self): assert zenodo_object().add_publication_date().publication_date is None def test_related_identifiers(self): - assert zenodo_object().add_related_identifiers().related_identifiers == [{ - "identifier": "10.0000/from-doi", - "relation": "isSupplementedBy", - "scheme": "doi" - }] + assert zenodo_object().add_related_identifiers().related_identifiers == [ + {"identifier": "10.0000/from-doi", "relation": "isSupplementedBy", "scheme": "doi"} + ] def test_title(self): assert zenodo_object().add_title().title == "Test title" diff --git a/tests/lib/cff_1_2_0/identifiers/_I/test_apalike_object.py b/tests/lib/cff_1_2_0/identifiers/_I/test_apalike_object.py index c037542c8..12cddbdc6 100644 --- a/tests/lib/cff_1_2_0/identifiers/_I/test_apalike_object.py +++ b/tests/lib/cff_1_2_0/identifiers/_I/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_as_string(self): actual_apalike = apalike_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "apalike.txt") diff --git a/tests/lib/cff_1_2_0/identifiers/_I/test_bibtex_object.py b/tests/lib/cff_1_2_0/identifiers/_I/test_bibtex_object.py index 38b464ece..102d5a576 100644 --- a/tests/lib/cff_1_2_0/identifiers/_I/test_bibtex_object.py +++ b/tests/lib/cff_1_2_0/identifiers/_I/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_as_string(self): actual_bibtex = bibtex_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "bibtex.bib") diff --git a/tests/lib/cff_1_2_0/identifiers/_I/test_codemeta_object.py b/tests/lib/cff_1_2_0/identifiers/_I/test_codemeta_object.py index 4401cfce6..d0a079130 100644 --- a/tests/lib/cff_1_2_0/identifiers/_I/test_codemeta_object.py +++ b/tests/lib/cff_1_2_0/identifiers/_I/test_codemeta_object.py @@ -18,7 +18,6 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_as_string(self): actual_codemeta = codemeta_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "codemeta.json") @@ -27,10 +26,7 @@ def test_as_string(self): assert actual_codemeta == expected_codemeta def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert codemeta_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_check_cffobj(self): codemeta_object().check_cffobj() diff --git a/tests/lib/cff_1_2_0/identifiers/_I/test_endnote_object.py b/tests/lib/cff_1_2_0/identifiers/_I/test_endnote_object.py index 00302b88a..9dedd2e3d 100644 --- a/tests/lib/cff_1_2_0/identifiers/_I/test_endnote_object.py +++ b/tests/lib/cff_1_2_0/identifiers/_I/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_as_string(self): actual_endnote = endnote_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "endnote.enw") diff --git a/tests/lib/cff_1_2_0/identifiers/_I/test_ris_object.py b/tests/lib/cff_1_2_0/identifiers/_I/test_ris_object.py index c73d44a6d..def0fd70b 100644 --- a/tests/lib/cff_1_2_0/identifiers/_I/test_ris_object.py +++ b/tests/lib/cff_1_2_0/identifiers/_I/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_2_0/identifiers/_I/test_schemaorg_object.py b/tests/lib/cff_1_2_0/identifiers/_I/test_schemaorg_object.py index d11bf4490..c45e21c65 100644 --- a/tests/lib/cff_1_2_0/identifiers/_I/test_schemaorg_object.py +++ b/tests/lib/cff_1_2_0/identifiers/_I/test_schemaorg_object.py @@ -18,7 +18,6 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_as_string(self): actual_schemaorg = schemaorg_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "schemaorg.json") @@ -27,10 +26,7 @@ def test_as_string(self): assert actual_schemaorg == expected_schemaorg def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_check_cffobj(self): schemaorg_object().check_cffobj() diff --git a/tests/lib/cff_1_2_0/identifiers/_I/test_zenodo_object.py b/tests/lib/cff_1_2_0/identifiers/_I/test_zenodo_object.py index df6925c0b..6991fd1d3 100644 --- a/tests/lib/cff_1_2_0/identifiers/_I/test_zenodo_object.py +++ b/tests/lib/cff_1_2_0/identifiers/_I/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,11 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [ - { - "name": "Test author" - } - ] + assert zenodo_object().add_creators().creators == [{"name": "Test author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None @@ -50,11 +45,9 @@ def test_publication_date(self): assert zenodo_object().add_publication_date().publication_date is None def test_related_identifiers(self): - assert zenodo_object().add_related_identifiers().related_identifiers == [{ - "identifier": "10.0000/from-identifiers", - "relation": "isSupplementedBy", - "scheme": "doi" - }] + assert zenodo_object().add_related_identifiers().related_identifiers == [ + {"identifier": "10.0000/from-identifiers", "relation": "isSupplementedBy", "scheme": "doi"} + ] def test_title(self): assert zenodo_object().add_title().title == "Test title" diff --git a/tests/lib/cff_1_2_0/identifiers/__/test_apalike_object.py b/tests/lib/cff_1_2_0/identifiers/__/test_apalike_object.py index 38bd129af..1cb16ef50 100644 --- a/tests/lib/cff_1_2_0/identifiers/__/test_apalike_object.py +++ b/tests/lib/cff_1_2_0/identifiers/__/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_as_string(self): actual_apalike = apalike_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "apalike.txt") diff --git a/tests/lib/cff_1_2_0/identifiers/__/test_bibtex_object.py b/tests/lib/cff_1_2_0/identifiers/__/test_bibtex_object.py index 061f87202..28403798f 100644 --- a/tests/lib/cff_1_2_0/identifiers/__/test_bibtex_object.py +++ b/tests/lib/cff_1_2_0/identifiers/__/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_as_string(self): actual_bibtex = bibtex_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "bibtex.bib") diff --git a/tests/lib/cff_1_2_0/identifiers/__/test_codemeta_object.py b/tests/lib/cff_1_2_0/identifiers/__/test_codemeta_object.py index aa5f50a9e..4cdc21366 100644 --- a/tests/lib/cff_1_2_0/identifiers/__/test_codemeta_object.py +++ b/tests/lib/cff_1_2_0/identifiers/__/test_codemeta_object.py @@ -18,7 +18,6 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_as_string(self): actual_codemeta = codemeta_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "codemeta.json") @@ -27,10 +26,7 @@ def test_as_string(self): assert actual_codemeta == expected_codemeta def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert codemeta_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_check_cffobj(self): codemeta_object().check_cffobj() diff --git a/tests/lib/cff_1_2_0/identifiers/__/test_endnote_object.py b/tests/lib/cff_1_2_0/identifiers/__/test_endnote_object.py index ca4c2d856..254cd9734 100644 --- a/tests/lib/cff_1_2_0/identifiers/__/test_endnote_object.py +++ b/tests/lib/cff_1_2_0/identifiers/__/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_as_string(self): actual_endnote = endnote_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "endnote.enw") diff --git a/tests/lib/cff_1_2_0/identifiers/__/test_ris_object.py b/tests/lib/cff_1_2_0/identifiers/__/test_ris_object.py index 3a2ab11c5..b2b7473a9 100644 --- a/tests/lib/cff_1_2_0/identifiers/__/test_ris_object.py +++ b/tests/lib/cff_1_2_0/identifiers/__/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_2_0/identifiers/__/test_schemaorg_object.py b/tests/lib/cff_1_2_0/identifiers/__/test_schemaorg_object.py index af9bdf8f0..af5906105 100644 --- a/tests/lib/cff_1_2_0/identifiers/__/test_schemaorg_object.py +++ b/tests/lib/cff_1_2_0/identifiers/__/test_schemaorg_object.py @@ -18,7 +18,6 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_as_string(self): actual_schemaorg = schemaorg_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "schemaorg.json") @@ -27,10 +26,7 @@ def test_as_string(self): assert actual_schemaorg == expected_schemaorg def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_check_cffobj(self): schemaorg_object().check_cffobj() diff --git a/tests/lib/cff_1_2_0/identifiers/__/test_zenodo_object.py b/tests/lib/cff_1_2_0/identifiers/__/test_zenodo_object.py index f56b8af26..318a07976 100644 --- a/tests/lib/cff_1_2_0/identifiers/__/test_zenodo_object.py +++ b/tests/lib/cff_1_2_0/identifiers/__/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,11 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [ - { - "name": "Test author" - } - ] + assert zenodo_object().add_creators().creators == [{"name": "Test author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None diff --git a/tests/lib/cff_1_2_0/types/dataset/test_schemaorg_object.py b/tests/lib/cff_1_2_0/types/dataset/test_schemaorg_object.py index 77f3f8b28..9acf29ff8 100644 --- a/tests/lib/cff_1_2_0/types/dataset/test_schemaorg_object.py +++ b/tests/lib/cff_1_2_0/types/dataset/test_schemaorg_object.py @@ -18,7 +18,6 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_as_string(self): actual_schemaorg = schemaorg_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "schemaorg.json") @@ -27,10 +26,7 @@ def test_as_string(self): assert actual_schemaorg == expected_schemaorg def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "The name" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "The name"}] def test_check_cffobj(self): schemaorg_object().check_cffobj() diff --git a/tests/lib/cff_1_2_0/types/dataset/test_zenodo_object.py b/tests/lib/cff_1_2_0/types/dataset/test_zenodo_object.py index 2946febba..ec663744e 100644 --- a/tests/lib/cff_1_2_0/types/dataset/test_zenodo_object.py +++ b/tests/lib/cff_1_2_0/types/dataset/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,11 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [ - { - "name": "The name" - } - ] + assert zenodo_object().add_creators().creators == [{"name": "The name"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None diff --git a/tests/lib/cff_1_2_0/types/none/test_schemaorg_object.py b/tests/lib/cff_1_2_0/types/none/test_schemaorg_object.py index ae70fbc3c..4520b4c7c 100644 --- a/tests/lib/cff_1_2_0/types/none/test_schemaorg_object.py +++ b/tests/lib/cff_1_2_0/types/none/test_schemaorg_object.py @@ -18,7 +18,6 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_as_string(self): actual_schemaorg = schemaorg_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "schemaorg.json") @@ -27,10 +26,7 @@ def test_as_string(self): assert actual_schemaorg == expected_schemaorg def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "The name" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "The name"}] def test_check_cffobj(self): schemaorg_object().check_cffobj() diff --git a/tests/lib/cff_1_2_0/types/none/test_zenodo_object.py b/tests/lib/cff_1_2_0/types/none/test_zenodo_object.py index 17fef72b1..6f7a6d1f2 100644 --- a/tests/lib/cff_1_2_0/types/none/test_zenodo_object.py +++ b/tests/lib/cff_1_2_0/types/none/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,11 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [ - { - "name": "The name" - } - ] + assert zenodo_object().add_creators().creators == [{"name": "The name"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None diff --git a/tests/lib/cff_1_2_0/types/software/test_schemaorg_object.py b/tests/lib/cff_1_2_0/types/software/test_schemaorg_object.py index ae70fbc3c..4520b4c7c 100644 --- a/tests/lib/cff_1_2_0/types/software/test_schemaorg_object.py +++ b/tests/lib/cff_1_2_0/types/software/test_schemaorg_object.py @@ -18,7 +18,6 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_as_string(self): actual_schemaorg = schemaorg_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "schemaorg.json") @@ -27,10 +26,7 @@ def test_as_string(self): assert actual_schemaorg == expected_schemaorg def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "The name" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "The name"}] def test_check_cffobj(self): schemaorg_object().check_cffobj() diff --git a/tests/lib/cff_1_2_0/types/software/test_zenodo_object.py b/tests/lib/cff_1_2_0/types/software/test_zenodo_object.py index 17fef72b1..6f7a6d1f2 100644 --- a/tests/lib/cff_1_2_0/types/software/test_zenodo_object.py +++ b/tests/lib/cff_1_2_0/types/software/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,11 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [ - { - "name": "The name" - } - ] + assert zenodo_object().add_creators().creators == [{"name": "The name"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None diff --git a/tests/lib/cff_1_2_0/urls/IRACU/test_apalike_object.py b/tests/lib/cff_1_2_0/urls/IRACU/test_apalike_object.py index 018d5d511..01e4aff55 100644 --- a/tests/lib/cff_1_2_0/urls/IRACU/test_apalike_object.py +++ b/tests/lib/cff_1_2_0/urls/IRACU/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_author(self): assert apalike_object().add_author().author == "Test author" diff --git a/tests/lib/cff_1_2_0/urls/IRACU/test_bibtex_object.py b/tests/lib/cff_1_2_0/urls/IRACU/test_bibtex_object.py index 422a107af..820c89401 100644 --- a/tests/lib/cff_1_2_0/urls/IRACU/test_bibtex_object.py +++ b/tests/lib/cff_1_2_0/urls/IRACU/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_author(self): assert bibtex_object().add_author().author == "author = {{Test author}}" diff --git a/tests/lib/cff_1_2_0/urls/IRACU/test_codemeta_object.py b/tests/lib/cff_1_2_0/urls/IRACU/test_codemeta_object.py index f15b25e5a..e66c88476 100644 --- a/tests/lib/cff_1_2_0/urls/IRACU/test_codemeta_object.py +++ b/tests/lib/cff_1_2_0/urls/IRACU/test_codemeta_object.py @@ -18,16 +18,12 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_check_cffobj(self): codemeta_object().check_cffobj() # doesn't need an assert def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert codemeta_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert codemeta_object().add_urls().code_repository == "https://github.com/the-url-from-repository-code" diff --git a/tests/lib/cff_1_2_0/urls/IRACU/test_endnote_object.py b/tests/lib/cff_1_2_0/urls/IRACU/test_endnote_object.py index 026e9d28a..6eb7b7310 100644 --- a/tests/lib/cff_1_2_0/urls/IRACU/test_endnote_object.py +++ b/tests/lib/cff_1_2_0/urls/IRACU/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_check_cffobj(self): endnote_object().check_cffobj() # doesn't need an assert diff --git a/tests/lib/cff_1_2_0/urls/IRACU/test_ris_object.py b/tests/lib/cff_1_2_0/urls/IRACU/test_ris_object.py index aa9f2718a..8f8fca6d3 100644 --- a/tests/lib/cff_1_2_0/urls/IRACU/test_ris_object.py +++ b/tests/lib/cff_1_2_0/urls/IRACU/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_2_0/urls/IRACU/test_schemaorg_object.py b/tests/lib/cff_1_2_0/urls/IRACU/test_schemaorg_object.py index b231c44fc..604fd42b4 100644 --- a/tests/lib/cff_1_2_0/urls/IRACU/test_schemaorg_object.py +++ b/tests/lib/cff_1_2_0/urls/IRACU/test_schemaorg_object.py @@ -18,16 +18,12 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_check_cffobj(self): schemaorg_object().check_cffobj() # doesn't need an assert def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert schemaorg_object().add_urls().code_repository == "https://github.com/the-url-from-repository-code" diff --git a/tests/lib/cff_1_2_0/urls/IRACU/test_zenodo_object.py b/tests/lib/cff_1_2_0/urls/IRACU/test_zenodo_object.py index 529072fea..826df4c1b 100644 --- a/tests/lib/cff_1_2_0/urls/IRACU/test_zenodo_object.py +++ b/tests/lib/cff_1_2_0/urls/IRACU/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,9 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [{ - "name": "Test author" - }] + assert zenodo_object().add_creators().creators == [{"name": "Test author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None @@ -48,27 +45,29 @@ def test_publication_date(self): assert zenodo_object().add_publication_date().publication_date is None def test_related_identifiers(self): - assert zenodo_object().add_related_identifiers().related_identifiers == [{ - "identifier": "https://github.com/the-url-from-identifiers", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-repository", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-repository-artifact", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-repository-code", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-url", - "relation": "isSupplementedBy", - "scheme": "url" - }] + assert zenodo_object().add_related_identifiers().related_identifiers == [ + { + "identifier": "https://github.com/the-url-from-identifiers", + "relation": "isSupplementedBy", + "scheme": "url", + }, + { + "identifier": "https://github.com/the-url-from-repository", + "relation": "isSupplementedBy", + "scheme": "url", + }, + { + "identifier": "https://github.com/the-url-from-repository-artifact", + "relation": "isSupplementedBy", + "scheme": "url", + }, + { + "identifier": "https://github.com/the-url-from-repository-code", + "relation": "isSupplementedBy", + "scheme": "url", + }, + {"identifier": "https://github.com/the-url-from-url", "relation": "isSupplementedBy", "scheme": "url"}, + ] def test_title(self): assert zenodo_object().add_title().title == "Test title" diff --git a/tests/lib/cff_1_2_0/urls/IRAC_/test_apalike_object.py b/tests/lib/cff_1_2_0/urls/IRAC_/test_apalike_object.py index 018d5d511..01e4aff55 100644 --- a/tests/lib/cff_1_2_0/urls/IRAC_/test_apalike_object.py +++ b/tests/lib/cff_1_2_0/urls/IRAC_/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_author(self): assert apalike_object().add_author().author == "Test author" diff --git a/tests/lib/cff_1_2_0/urls/IRAC_/test_bibtex_object.py b/tests/lib/cff_1_2_0/urls/IRAC_/test_bibtex_object.py index 422a107af..820c89401 100644 --- a/tests/lib/cff_1_2_0/urls/IRAC_/test_bibtex_object.py +++ b/tests/lib/cff_1_2_0/urls/IRAC_/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_author(self): assert bibtex_object().add_author().author == "author = {{Test author}}" diff --git a/tests/lib/cff_1_2_0/urls/IRAC_/test_codemeta_object.py b/tests/lib/cff_1_2_0/urls/IRAC_/test_codemeta_object.py index f15b25e5a..e66c88476 100644 --- a/tests/lib/cff_1_2_0/urls/IRAC_/test_codemeta_object.py +++ b/tests/lib/cff_1_2_0/urls/IRAC_/test_codemeta_object.py @@ -18,16 +18,12 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_check_cffobj(self): codemeta_object().check_cffobj() # doesn't need an assert def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert codemeta_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert codemeta_object().add_urls().code_repository == "https://github.com/the-url-from-repository-code" diff --git a/tests/lib/cff_1_2_0/urls/IRAC_/test_endnote_object.py b/tests/lib/cff_1_2_0/urls/IRAC_/test_endnote_object.py index 026e9d28a..6eb7b7310 100644 --- a/tests/lib/cff_1_2_0/urls/IRAC_/test_endnote_object.py +++ b/tests/lib/cff_1_2_0/urls/IRAC_/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_check_cffobj(self): endnote_object().check_cffobj() # doesn't need an assert diff --git a/tests/lib/cff_1_2_0/urls/IRAC_/test_ris_object.py b/tests/lib/cff_1_2_0/urls/IRAC_/test_ris_object.py index aa9f2718a..8f8fca6d3 100644 --- a/tests/lib/cff_1_2_0/urls/IRAC_/test_ris_object.py +++ b/tests/lib/cff_1_2_0/urls/IRAC_/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_2_0/urls/IRAC_/test_schemaorg_object.py b/tests/lib/cff_1_2_0/urls/IRAC_/test_schemaorg_object.py index b231c44fc..604fd42b4 100644 --- a/tests/lib/cff_1_2_0/urls/IRAC_/test_schemaorg_object.py +++ b/tests/lib/cff_1_2_0/urls/IRAC_/test_schemaorg_object.py @@ -18,16 +18,12 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_check_cffobj(self): schemaorg_object().check_cffobj() # doesn't need an assert def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert schemaorg_object().add_urls().code_repository == "https://github.com/the-url-from-repository-code" diff --git a/tests/lib/cff_1_2_0/urls/IRAC_/test_zenodo_object.py b/tests/lib/cff_1_2_0/urls/IRAC_/test_zenodo_object.py index d9e3bd226..1de15b743 100644 --- a/tests/lib/cff_1_2_0/urls/IRAC_/test_zenodo_object.py +++ b/tests/lib/cff_1_2_0/urls/IRAC_/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,9 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [{ - "name": "Test author" - }] + assert zenodo_object().add_creators().creators == [{"name": "Test author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None @@ -48,23 +45,28 @@ def test_publication_date(self): assert zenodo_object().add_publication_date().publication_date is None def test_related_identifiers(self): - assert zenodo_object().add_related_identifiers().related_identifiers == [{ - "identifier": "https://github.com/the-url-from-identifiers", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-repository", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-repository-artifact", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-repository-code", - "relation": "isSupplementedBy", - "scheme": "url" - }] + assert zenodo_object().add_related_identifiers().related_identifiers == [ + { + "identifier": "https://github.com/the-url-from-identifiers", + "relation": "isSupplementedBy", + "scheme": "url", + }, + { + "identifier": "https://github.com/the-url-from-repository", + "relation": "isSupplementedBy", + "scheme": "url", + }, + { + "identifier": "https://github.com/the-url-from-repository-artifact", + "relation": "isSupplementedBy", + "scheme": "url", + }, + { + "identifier": "https://github.com/the-url-from-repository-code", + "relation": "isSupplementedBy", + "scheme": "url", + }, + ] def test_title(self): assert zenodo_object().add_title().title == "Test title" diff --git a/tests/lib/cff_1_2_0/urls/IRA_U/test_apalike_object.py b/tests/lib/cff_1_2_0/urls/IRA_U/test_apalike_object.py index 018d5d511..01e4aff55 100644 --- a/tests/lib/cff_1_2_0/urls/IRA_U/test_apalike_object.py +++ b/tests/lib/cff_1_2_0/urls/IRA_U/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_author(self): assert apalike_object().add_author().author == "Test author" diff --git a/tests/lib/cff_1_2_0/urls/IRA_U/test_bibtex_object.py b/tests/lib/cff_1_2_0/urls/IRA_U/test_bibtex_object.py index 422a107af..820c89401 100644 --- a/tests/lib/cff_1_2_0/urls/IRA_U/test_bibtex_object.py +++ b/tests/lib/cff_1_2_0/urls/IRA_U/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_author(self): assert bibtex_object().add_author().author == "author = {{Test author}}" diff --git a/tests/lib/cff_1_2_0/urls/IRA_U/test_codemeta_object.py b/tests/lib/cff_1_2_0/urls/IRA_U/test_codemeta_object.py index 58bd771d0..099d99293 100644 --- a/tests/lib/cff_1_2_0/urls/IRA_U/test_codemeta_object.py +++ b/tests/lib/cff_1_2_0/urls/IRA_U/test_codemeta_object.py @@ -18,16 +18,12 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_check_cffobj(self): codemeta_object().check_cffobj() # doesn't need an assert def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert codemeta_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert codemeta_object().add_urls().code_repository == "https://github.com/the-url-from-repository" diff --git a/tests/lib/cff_1_2_0/urls/IRA_U/test_endnote_object.py b/tests/lib/cff_1_2_0/urls/IRA_U/test_endnote_object.py index 026e9d28a..6eb7b7310 100644 --- a/tests/lib/cff_1_2_0/urls/IRA_U/test_endnote_object.py +++ b/tests/lib/cff_1_2_0/urls/IRA_U/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_check_cffobj(self): endnote_object().check_cffobj() # doesn't need an assert diff --git a/tests/lib/cff_1_2_0/urls/IRA_U/test_ris_object.py b/tests/lib/cff_1_2_0/urls/IRA_U/test_ris_object.py index aa9f2718a..8f8fca6d3 100644 --- a/tests/lib/cff_1_2_0/urls/IRA_U/test_ris_object.py +++ b/tests/lib/cff_1_2_0/urls/IRA_U/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_2_0/urls/IRA_U/test_schemaorg_object.py b/tests/lib/cff_1_2_0/urls/IRA_U/test_schemaorg_object.py index 9380bd494..6ee6ebcfd 100644 --- a/tests/lib/cff_1_2_0/urls/IRA_U/test_schemaorg_object.py +++ b/tests/lib/cff_1_2_0/urls/IRA_U/test_schemaorg_object.py @@ -18,16 +18,12 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_check_cffobj(self): schemaorg_object().check_cffobj() # doesn't need an assert def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert schemaorg_object().add_urls().code_repository == "https://github.com/the-url-from-repository" diff --git a/tests/lib/cff_1_2_0/urls/IRA_U/test_zenodo_object.py b/tests/lib/cff_1_2_0/urls/IRA_U/test_zenodo_object.py index ac189a568..64b189fc2 100644 --- a/tests/lib/cff_1_2_0/urls/IRA_U/test_zenodo_object.py +++ b/tests/lib/cff_1_2_0/urls/IRA_U/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,9 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [{ - "name": "Test author" - }] + assert zenodo_object().add_creators().creators == [{"name": "Test author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None @@ -48,23 +45,24 @@ def test_publication_date(self): assert zenodo_object().add_publication_date().publication_date is None def test_related_identifiers(self): - assert zenodo_object().add_related_identifiers().related_identifiers == [{ - "identifier": "https://github.com/the-url-from-identifiers", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-repository", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-repository-artifact", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-url", - "relation": "isSupplementedBy", - "scheme": "url" - }] + assert zenodo_object().add_related_identifiers().related_identifiers == [ + { + "identifier": "https://github.com/the-url-from-identifiers", + "relation": "isSupplementedBy", + "scheme": "url", + }, + { + "identifier": "https://github.com/the-url-from-repository", + "relation": "isSupplementedBy", + "scheme": "url", + }, + { + "identifier": "https://github.com/the-url-from-repository-artifact", + "relation": "isSupplementedBy", + "scheme": "url", + }, + {"identifier": "https://github.com/the-url-from-url", "relation": "isSupplementedBy", "scheme": "url"}, + ] def test_title(self): assert zenodo_object().add_title().title == "Test title" diff --git a/tests/lib/cff_1_2_0/urls/IRA__/test_apalike_object.py b/tests/lib/cff_1_2_0/urls/IRA__/test_apalike_object.py index 018d5d511..01e4aff55 100644 --- a/tests/lib/cff_1_2_0/urls/IRA__/test_apalike_object.py +++ b/tests/lib/cff_1_2_0/urls/IRA__/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_author(self): assert apalike_object().add_author().author == "Test author" diff --git a/tests/lib/cff_1_2_0/urls/IRA__/test_bibtex_object.py b/tests/lib/cff_1_2_0/urls/IRA__/test_bibtex_object.py index 422a107af..820c89401 100644 --- a/tests/lib/cff_1_2_0/urls/IRA__/test_bibtex_object.py +++ b/tests/lib/cff_1_2_0/urls/IRA__/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_author(self): assert bibtex_object().add_author().author == "author = {{Test author}}" diff --git a/tests/lib/cff_1_2_0/urls/IRA__/test_codemeta_object.py b/tests/lib/cff_1_2_0/urls/IRA__/test_codemeta_object.py index 58bd771d0..099d99293 100644 --- a/tests/lib/cff_1_2_0/urls/IRA__/test_codemeta_object.py +++ b/tests/lib/cff_1_2_0/urls/IRA__/test_codemeta_object.py @@ -18,16 +18,12 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_check_cffobj(self): codemeta_object().check_cffobj() # doesn't need an assert def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert codemeta_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert codemeta_object().add_urls().code_repository == "https://github.com/the-url-from-repository" diff --git a/tests/lib/cff_1_2_0/urls/IRA__/test_endnote_object.py b/tests/lib/cff_1_2_0/urls/IRA__/test_endnote_object.py index 026e9d28a..6eb7b7310 100644 --- a/tests/lib/cff_1_2_0/urls/IRA__/test_endnote_object.py +++ b/tests/lib/cff_1_2_0/urls/IRA__/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_check_cffobj(self): endnote_object().check_cffobj() # doesn't need an assert diff --git a/tests/lib/cff_1_2_0/urls/IRA__/test_ris_object.py b/tests/lib/cff_1_2_0/urls/IRA__/test_ris_object.py index aa9f2718a..8f8fca6d3 100644 --- a/tests/lib/cff_1_2_0/urls/IRA__/test_ris_object.py +++ b/tests/lib/cff_1_2_0/urls/IRA__/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_2_0/urls/IRA__/test_schemaorg_object.py b/tests/lib/cff_1_2_0/urls/IRA__/test_schemaorg_object.py index 9380bd494..6ee6ebcfd 100644 --- a/tests/lib/cff_1_2_0/urls/IRA__/test_schemaorg_object.py +++ b/tests/lib/cff_1_2_0/urls/IRA__/test_schemaorg_object.py @@ -18,16 +18,12 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_check_cffobj(self): schemaorg_object().check_cffobj() # doesn't need an assert def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert schemaorg_object().add_urls().code_repository == "https://github.com/the-url-from-repository" diff --git a/tests/lib/cff_1_2_0/urls/IRA__/test_zenodo_object.py b/tests/lib/cff_1_2_0/urls/IRA__/test_zenodo_object.py index e512bb3aa..9bb79109d 100644 --- a/tests/lib/cff_1_2_0/urls/IRA__/test_zenodo_object.py +++ b/tests/lib/cff_1_2_0/urls/IRA__/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,9 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [{ - "name": "Test author" - }] + assert zenodo_object().add_creators().creators == [{"name": "Test author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None @@ -48,19 +45,23 @@ def test_publication_date(self): assert zenodo_object().add_publication_date().publication_date is None def test_related_identifiers(self): - assert zenodo_object().add_related_identifiers().related_identifiers == [{ - "identifier": "https://github.com/the-url-from-identifiers", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-repository", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-repository-artifact", - "relation": "isSupplementedBy", - "scheme": "url" - }] + assert zenodo_object().add_related_identifiers().related_identifiers == [ + { + "identifier": "https://github.com/the-url-from-identifiers", + "relation": "isSupplementedBy", + "scheme": "url", + }, + { + "identifier": "https://github.com/the-url-from-repository", + "relation": "isSupplementedBy", + "scheme": "url", + }, + { + "identifier": "https://github.com/the-url-from-repository-artifact", + "relation": "isSupplementedBy", + "scheme": "url", + }, + ] def test_title(self): assert zenodo_object().add_title().title == "Test title" diff --git a/tests/lib/cff_1_2_0/urls/IR_CU/test_apalike_object.py b/tests/lib/cff_1_2_0/urls/IR_CU/test_apalike_object.py index 018d5d511..01e4aff55 100644 --- a/tests/lib/cff_1_2_0/urls/IR_CU/test_apalike_object.py +++ b/tests/lib/cff_1_2_0/urls/IR_CU/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_author(self): assert apalike_object().add_author().author == "Test author" diff --git a/tests/lib/cff_1_2_0/urls/IR_CU/test_bibtex_object.py b/tests/lib/cff_1_2_0/urls/IR_CU/test_bibtex_object.py index 422a107af..820c89401 100644 --- a/tests/lib/cff_1_2_0/urls/IR_CU/test_bibtex_object.py +++ b/tests/lib/cff_1_2_0/urls/IR_CU/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_author(self): assert bibtex_object().add_author().author == "author = {{Test author}}" diff --git a/tests/lib/cff_1_2_0/urls/IR_CU/test_codemeta_object.py b/tests/lib/cff_1_2_0/urls/IR_CU/test_codemeta_object.py index f15b25e5a..e66c88476 100644 --- a/tests/lib/cff_1_2_0/urls/IR_CU/test_codemeta_object.py +++ b/tests/lib/cff_1_2_0/urls/IR_CU/test_codemeta_object.py @@ -18,16 +18,12 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_check_cffobj(self): codemeta_object().check_cffobj() # doesn't need an assert def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert codemeta_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert codemeta_object().add_urls().code_repository == "https://github.com/the-url-from-repository-code" diff --git a/tests/lib/cff_1_2_0/urls/IR_CU/test_endnote_object.py b/tests/lib/cff_1_2_0/urls/IR_CU/test_endnote_object.py index 026e9d28a..6eb7b7310 100644 --- a/tests/lib/cff_1_2_0/urls/IR_CU/test_endnote_object.py +++ b/tests/lib/cff_1_2_0/urls/IR_CU/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_check_cffobj(self): endnote_object().check_cffobj() # doesn't need an assert diff --git a/tests/lib/cff_1_2_0/urls/IR_CU/test_ris_object.py b/tests/lib/cff_1_2_0/urls/IR_CU/test_ris_object.py index aa9f2718a..8f8fca6d3 100644 --- a/tests/lib/cff_1_2_0/urls/IR_CU/test_ris_object.py +++ b/tests/lib/cff_1_2_0/urls/IR_CU/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_2_0/urls/IR_CU/test_schemaorg_object.py b/tests/lib/cff_1_2_0/urls/IR_CU/test_schemaorg_object.py index b231c44fc..604fd42b4 100644 --- a/tests/lib/cff_1_2_0/urls/IR_CU/test_schemaorg_object.py +++ b/tests/lib/cff_1_2_0/urls/IR_CU/test_schemaorg_object.py @@ -18,16 +18,12 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_check_cffobj(self): schemaorg_object().check_cffobj() # doesn't need an assert def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert schemaorg_object().add_urls().code_repository == "https://github.com/the-url-from-repository-code" diff --git a/tests/lib/cff_1_2_0/urls/IR_CU/test_zenodo_object.py b/tests/lib/cff_1_2_0/urls/IR_CU/test_zenodo_object.py index 96a0a7f1c..c4add76b2 100644 --- a/tests/lib/cff_1_2_0/urls/IR_CU/test_zenodo_object.py +++ b/tests/lib/cff_1_2_0/urls/IR_CU/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,9 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [{ - "name": "Test author" - }] + assert zenodo_object().add_creators().creators == [{"name": "Test author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None @@ -48,23 +45,24 @@ def test_publication_date(self): assert zenodo_object().add_publication_date().publication_date is None def test_related_identifiers(self): - assert zenodo_object().add_related_identifiers().related_identifiers == [{ - "identifier": "https://github.com/the-url-from-identifiers", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-repository", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-repository-code", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-url", - "relation": "isSupplementedBy", - "scheme": "url" - }] + assert zenodo_object().add_related_identifiers().related_identifiers == [ + { + "identifier": "https://github.com/the-url-from-identifiers", + "relation": "isSupplementedBy", + "scheme": "url", + }, + { + "identifier": "https://github.com/the-url-from-repository", + "relation": "isSupplementedBy", + "scheme": "url", + }, + { + "identifier": "https://github.com/the-url-from-repository-code", + "relation": "isSupplementedBy", + "scheme": "url", + }, + {"identifier": "https://github.com/the-url-from-url", "relation": "isSupplementedBy", "scheme": "url"}, + ] def test_title(self): assert zenodo_object().add_title().title == "Test title" diff --git a/tests/lib/cff_1_2_0/urls/IR_C_/test_apalike_object.py b/tests/lib/cff_1_2_0/urls/IR_C_/test_apalike_object.py index 018d5d511..01e4aff55 100644 --- a/tests/lib/cff_1_2_0/urls/IR_C_/test_apalike_object.py +++ b/tests/lib/cff_1_2_0/urls/IR_C_/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_author(self): assert apalike_object().add_author().author == "Test author" diff --git a/tests/lib/cff_1_2_0/urls/IR_C_/test_bibtex_object.py b/tests/lib/cff_1_2_0/urls/IR_C_/test_bibtex_object.py index 422a107af..820c89401 100644 --- a/tests/lib/cff_1_2_0/urls/IR_C_/test_bibtex_object.py +++ b/tests/lib/cff_1_2_0/urls/IR_C_/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_author(self): assert bibtex_object().add_author().author == "author = {{Test author}}" diff --git a/tests/lib/cff_1_2_0/urls/IR_C_/test_codemeta_object.py b/tests/lib/cff_1_2_0/urls/IR_C_/test_codemeta_object.py index f15b25e5a..e66c88476 100644 --- a/tests/lib/cff_1_2_0/urls/IR_C_/test_codemeta_object.py +++ b/tests/lib/cff_1_2_0/urls/IR_C_/test_codemeta_object.py @@ -18,16 +18,12 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_check_cffobj(self): codemeta_object().check_cffobj() # doesn't need an assert def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert codemeta_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert codemeta_object().add_urls().code_repository == "https://github.com/the-url-from-repository-code" diff --git a/tests/lib/cff_1_2_0/urls/IR_C_/test_endnote_object.py b/tests/lib/cff_1_2_0/urls/IR_C_/test_endnote_object.py index 026e9d28a..6eb7b7310 100644 --- a/tests/lib/cff_1_2_0/urls/IR_C_/test_endnote_object.py +++ b/tests/lib/cff_1_2_0/urls/IR_C_/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_check_cffobj(self): endnote_object().check_cffobj() # doesn't need an assert diff --git a/tests/lib/cff_1_2_0/urls/IR_C_/test_ris_object.py b/tests/lib/cff_1_2_0/urls/IR_C_/test_ris_object.py index aa9f2718a..8f8fca6d3 100644 --- a/tests/lib/cff_1_2_0/urls/IR_C_/test_ris_object.py +++ b/tests/lib/cff_1_2_0/urls/IR_C_/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_2_0/urls/IR_C_/test_schemaorg_object.py b/tests/lib/cff_1_2_0/urls/IR_C_/test_schemaorg_object.py index b231c44fc..604fd42b4 100644 --- a/tests/lib/cff_1_2_0/urls/IR_C_/test_schemaorg_object.py +++ b/tests/lib/cff_1_2_0/urls/IR_C_/test_schemaorg_object.py @@ -18,16 +18,12 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_check_cffobj(self): schemaorg_object().check_cffobj() # doesn't need an assert def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert schemaorg_object().add_urls().code_repository == "https://github.com/the-url-from-repository-code" diff --git a/tests/lib/cff_1_2_0/urls/IR_C_/test_zenodo_object.py b/tests/lib/cff_1_2_0/urls/IR_C_/test_zenodo_object.py index af44ebc38..8d7e90bc9 100644 --- a/tests/lib/cff_1_2_0/urls/IR_C_/test_zenodo_object.py +++ b/tests/lib/cff_1_2_0/urls/IR_C_/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,9 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [{ - "name": "Test author" - }] + assert zenodo_object().add_creators().creators == [{"name": "Test author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None @@ -48,19 +45,23 @@ def test_publication_date(self): assert zenodo_object().add_publication_date().publication_date is None def test_related_identifiers(self): - assert zenodo_object().add_related_identifiers().related_identifiers == [{ - "identifier": "https://github.com/the-url-from-identifiers", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-repository", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-repository-code", - "relation": "isSupplementedBy", - "scheme": "url" - }] + assert zenodo_object().add_related_identifiers().related_identifiers == [ + { + "identifier": "https://github.com/the-url-from-identifiers", + "relation": "isSupplementedBy", + "scheme": "url", + }, + { + "identifier": "https://github.com/the-url-from-repository", + "relation": "isSupplementedBy", + "scheme": "url", + }, + { + "identifier": "https://github.com/the-url-from-repository-code", + "relation": "isSupplementedBy", + "scheme": "url", + }, + ] def test_title(self): assert zenodo_object().add_title().title == "Test title" diff --git a/tests/lib/cff_1_2_0/urls/IR__U/test_apalike_object.py b/tests/lib/cff_1_2_0/urls/IR__U/test_apalike_object.py index 018d5d511..01e4aff55 100644 --- a/tests/lib/cff_1_2_0/urls/IR__U/test_apalike_object.py +++ b/tests/lib/cff_1_2_0/urls/IR__U/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_author(self): assert apalike_object().add_author().author == "Test author" diff --git a/tests/lib/cff_1_2_0/urls/IR__U/test_bibtex_object.py b/tests/lib/cff_1_2_0/urls/IR__U/test_bibtex_object.py index 422a107af..820c89401 100644 --- a/tests/lib/cff_1_2_0/urls/IR__U/test_bibtex_object.py +++ b/tests/lib/cff_1_2_0/urls/IR__U/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_author(self): assert bibtex_object().add_author().author == "author = {{Test author}}" diff --git a/tests/lib/cff_1_2_0/urls/IR__U/test_codemeta_object.py b/tests/lib/cff_1_2_0/urls/IR__U/test_codemeta_object.py index 58bd771d0..099d99293 100644 --- a/tests/lib/cff_1_2_0/urls/IR__U/test_codemeta_object.py +++ b/tests/lib/cff_1_2_0/urls/IR__U/test_codemeta_object.py @@ -18,16 +18,12 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_check_cffobj(self): codemeta_object().check_cffobj() # doesn't need an assert def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert codemeta_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert codemeta_object().add_urls().code_repository == "https://github.com/the-url-from-repository" diff --git a/tests/lib/cff_1_2_0/urls/IR__U/test_endnote_object.py b/tests/lib/cff_1_2_0/urls/IR__U/test_endnote_object.py index 026e9d28a..6eb7b7310 100644 --- a/tests/lib/cff_1_2_0/urls/IR__U/test_endnote_object.py +++ b/tests/lib/cff_1_2_0/urls/IR__U/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_check_cffobj(self): endnote_object().check_cffobj() # doesn't need an assert diff --git a/tests/lib/cff_1_2_0/urls/IR__U/test_ris_object.py b/tests/lib/cff_1_2_0/urls/IR__U/test_ris_object.py index aa9f2718a..8f8fca6d3 100644 --- a/tests/lib/cff_1_2_0/urls/IR__U/test_ris_object.py +++ b/tests/lib/cff_1_2_0/urls/IR__U/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_2_0/urls/IR__U/test_schemaorg_object.py b/tests/lib/cff_1_2_0/urls/IR__U/test_schemaorg_object.py index 9380bd494..6ee6ebcfd 100644 --- a/tests/lib/cff_1_2_0/urls/IR__U/test_schemaorg_object.py +++ b/tests/lib/cff_1_2_0/urls/IR__U/test_schemaorg_object.py @@ -18,16 +18,12 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_check_cffobj(self): schemaorg_object().check_cffobj() # doesn't need an assert def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert schemaorg_object().add_urls().code_repository == "https://github.com/the-url-from-repository" diff --git a/tests/lib/cff_1_2_0/urls/IR__U/test_zenodo_object.py b/tests/lib/cff_1_2_0/urls/IR__U/test_zenodo_object.py index 9a87ba11e..1c3fc6d70 100644 --- a/tests/lib/cff_1_2_0/urls/IR__U/test_zenodo_object.py +++ b/tests/lib/cff_1_2_0/urls/IR__U/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,9 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [{ - "name": "Test author" - }] + assert zenodo_object().add_creators().creators == [{"name": "Test author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None @@ -48,19 +45,19 @@ def test_publication_date(self): assert zenodo_object().add_publication_date().publication_date is None def test_related_identifiers(self): - assert zenodo_object().add_related_identifiers().related_identifiers == [{ - "identifier": "https://github.com/the-url-from-identifiers", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-repository", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-url", - "relation": "isSupplementedBy", - "scheme": "url" - }] + assert zenodo_object().add_related_identifiers().related_identifiers == [ + { + "identifier": "https://github.com/the-url-from-identifiers", + "relation": "isSupplementedBy", + "scheme": "url", + }, + { + "identifier": "https://github.com/the-url-from-repository", + "relation": "isSupplementedBy", + "scheme": "url", + }, + {"identifier": "https://github.com/the-url-from-url", "relation": "isSupplementedBy", "scheme": "url"}, + ] def test_title(self): assert zenodo_object().add_title().title == "Test title" diff --git a/tests/lib/cff_1_2_0/urls/IR___/test_apalike_object.py b/tests/lib/cff_1_2_0/urls/IR___/test_apalike_object.py index 018d5d511..01e4aff55 100644 --- a/tests/lib/cff_1_2_0/urls/IR___/test_apalike_object.py +++ b/tests/lib/cff_1_2_0/urls/IR___/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_author(self): assert apalike_object().add_author().author == "Test author" diff --git a/tests/lib/cff_1_2_0/urls/IR___/test_bibtex_object.py b/tests/lib/cff_1_2_0/urls/IR___/test_bibtex_object.py index 422a107af..820c89401 100644 --- a/tests/lib/cff_1_2_0/urls/IR___/test_bibtex_object.py +++ b/tests/lib/cff_1_2_0/urls/IR___/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_author(self): assert bibtex_object().add_author().author == "author = {{Test author}}" diff --git a/tests/lib/cff_1_2_0/urls/IR___/test_codemeta_object.py b/tests/lib/cff_1_2_0/urls/IR___/test_codemeta_object.py index 58bd771d0..099d99293 100644 --- a/tests/lib/cff_1_2_0/urls/IR___/test_codemeta_object.py +++ b/tests/lib/cff_1_2_0/urls/IR___/test_codemeta_object.py @@ -18,16 +18,12 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_check_cffobj(self): codemeta_object().check_cffobj() # doesn't need an assert def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert codemeta_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert codemeta_object().add_urls().code_repository == "https://github.com/the-url-from-repository" diff --git a/tests/lib/cff_1_2_0/urls/IR___/test_endnote_object.py b/tests/lib/cff_1_2_0/urls/IR___/test_endnote_object.py index 026e9d28a..6eb7b7310 100644 --- a/tests/lib/cff_1_2_0/urls/IR___/test_endnote_object.py +++ b/tests/lib/cff_1_2_0/urls/IR___/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_check_cffobj(self): endnote_object().check_cffobj() # doesn't need an assert diff --git a/tests/lib/cff_1_2_0/urls/IR___/test_ris_object.py b/tests/lib/cff_1_2_0/urls/IR___/test_ris_object.py index aa9f2718a..8f8fca6d3 100644 --- a/tests/lib/cff_1_2_0/urls/IR___/test_ris_object.py +++ b/tests/lib/cff_1_2_0/urls/IR___/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_2_0/urls/IR___/test_schemaorg_object.py b/tests/lib/cff_1_2_0/urls/IR___/test_schemaorg_object.py index 9380bd494..6ee6ebcfd 100644 --- a/tests/lib/cff_1_2_0/urls/IR___/test_schemaorg_object.py +++ b/tests/lib/cff_1_2_0/urls/IR___/test_schemaorg_object.py @@ -18,16 +18,12 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_check_cffobj(self): schemaorg_object().check_cffobj() # doesn't need an assert def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert schemaorg_object().add_urls().code_repository == "https://github.com/the-url-from-repository" diff --git a/tests/lib/cff_1_2_0/urls/IR___/test_zenodo_object.py b/tests/lib/cff_1_2_0/urls/IR___/test_zenodo_object.py index 402ff23e6..ace5efab5 100644 --- a/tests/lib/cff_1_2_0/urls/IR___/test_zenodo_object.py +++ b/tests/lib/cff_1_2_0/urls/IR___/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,9 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [{ - "name": "Test author" - }] + assert zenodo_object().add_creators().creators == [{"name": "Test author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None @@ -48,15 +45,18 @@ def test_publication_date(self): assert zenodo_object().add_publication_date().publication_date is None def test_related_identifiers(self): - assert zenodo_object().add_related_identifiers().related_identifiers == [{ - "identifier": "https://github.com/the-url-from-identifiers", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-repository", - "relation": "isSupplementedBy", - "scheme": "url" - }] + assert zenodo_object().add_related_identifiers().related_identifiers == [ + { + "identifier": "https://github.com/the-url-from-identifiers", + "relation": "isSupplementedBy", + "scheme": "url", + }, + { + "identifier": "https://github.com/the-url-from-repository", + "relation": "isSupplementedBy", + "scheme": "url", + }, + ] def test_title(self): assert zenodo_object().add_title().title == "Test title" diff --git a/tests/lib/cff_1_2_0/urls/I_ACU/test_apalike_object.py b/tests/lib/cff_1_2_0/urls/I_ACU/test_apalike_object.py index 018d5d511..01e4aff55 100644 --- a/tests/lib/cff_1_2_0/urls/I_ACU/test_apalike_object.py +++ b/tests/lib/cff_1_2_0/urls/I_ACU/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_author(self): assert apalike_object().add_author().author == "Test author" diff --git a/tests/lib/cff_1_2_0/urls/I_ACU/test_bibtex_object.py b/tests/lib/cff_1_2_0/urls/I_ACU/test_bibtex_object.py index 422a107af..820c89401 100644 --- a/tests/lib/cff_1_2_0/urls/I_ACU/test_bibtex_object.py +++ b/tests/lib/cff_1_2_0/urls/I_ACU/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_author(self): assert bibtex_object().add_author().author == "author = {{Test author}}" diff --git a/tests/lib/cff_1_2_0/urls/I_ACU/test_codemeta_object.py b/tests/lib/cff_1_2_0/urls/I_ACU/test_codemeta_object.py index f15b25e5a..e66c88476 100644 --- a/tests/lib/cff_1_2_0/urls/I_ACU/test_codemeta_object.py +++ b/tests/lib/cff_1_2_0/urls/I_ACU/test_codemeta_object.py @@ -18,16 +18,12 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_check_cffobj(self): codemeta_object().check_cffobj() # doesn't need an assert def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert codemeta_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert codemeta_object().add_urls().code_repository == "https://github.com/the-url-from-repository-code" diff --git a/tests/lib/cff_1_2_0/urls/I_ACU/test_endnote_object.py b/tests/lib/cff_1_2_0/urls/I_ACU/test_endnote_object.py index 026e9d28a..6eb7b7310 100644 --- a/tests/lib/cff_1_2_0/urls/I_ACU/test_endnote_object.py +++ b/tests/lib/cff_1_2_0/urls/I_ACU/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_check_cffobj(self): endnote_object().check_cffobj() # doesn't need an assert diff --git a/tests/lib/cff_1_2_0/urls/I_ACU/test_ris_object.py b/tests/lib/cff_1_2_0/urls/I_ACU/test_ris_object.py index aa9f2718a..8f8fca6d3 100644 --- a/tests/lib/cff_1_2_0/urls/I_ACU/test_ris_object.py +++ b/tests/lib/cff_1_2_0/urls/I_ACU/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_2_0/urls/I_ACU/test_schemaorg_object.py b/tests/lib/cff_1_2_0/urls/I_ACU/test_schemaorg_object.py index b231c44fc..604fd42b4 100644 --- a/tests/lib/cff_1_2_0/urls/I_ACU/test_schemaorg_object.py +++ b/tests/lib/cff_1_2_0/urls/I_ACU/test_schemaorg_object.py @@ -18,16 +18,12 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_check_cffobj(self): schemaorg_object().check_cffobj() # doesn't need an assert def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert schemaorg_object().add_urls().code_repository == "https://github.com/the-url-from-repository-code" diff --git a/tests/lib/cff_1_2_0/urls/I_ACU/test_zenodo_object.py b/tests/lib/cff_1_2_0/urls/I_ACU/test_zenodo_object.py index 641056aa7..22d021df0 100644 --- a/tests/lib/cff_1_2_0/urls/I_ACU/test_zenodo_object.py +++ b/tests/lib/cff_1_2_0/urls/I_ACU/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,9 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [{ - "name": "Test author" - }] + assert zenodo_object().add_creators().creators == [{"name": "Test author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None @@ -48,23 +45,24 @@ def test_publication_date(self): assert zenodo_object().add_publication_date().publication_date is None def test_related_identifiers(self): - assert zenodo_object().add_related_identifiers().related_identifiers == [{ - "identifier": "https://github.com/the-url-from-identifiers", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-repository-artifact", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-repository-code", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-url", - "relation": "isSupplementedBy", - "scheme": "url" - }] + assert zenodo_object().add_related_identifiers().related_identifiers == [ + { + "identifier": "https://github.com/the-url-from-identifiers", + "relation": "isSupplementedBy", + "scheme": "url", + }, + { + "identifier": "https://github.com/the-url-from-repository-artifact", + "relation": "isSupplementedBy", + "scheme": "url", + }, + { + "identifier": "https://github.com/the-url-from-repository-code", + "relation": "isSupplementedBy", + "scheme": "url", + }, + {"identifier": "https://github.com/the-url-from-url", "relation": "isSupplementedBy", "scheme": "url"}, + ] def test_title(self): assert zenodo_object().add_title().title == "Test title" diff --git a/tests/lib/cff_1_2_0/urls/I_AC_/test_apalike_object.py b/tests/lib/cff_1_2_0/urls/I_AC_/test_apalike_object.py index 018d5d511..01e4aff55 100644 --- a/tests/lib/cff_1_2_0/urls/I_AC_/test_apalike_object.py +++ b/tests/lib/cff_1_2_0/urls/I_AC_/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_author(self): assert apalike_object().add_author().author == "Test author" diff --git a/tests/lib/cff_1_2_0/urls/I_AC_/test_bibtex_object.py b/tests/lib/cff_1_2_0/urls/I_AC_/test_bibtex_object.py index 422a107af..820c89401 100644 --- a/tests/lib/cff_1_2_0/urls/I_AC_/test_bibtex_object.py +++ b/tests/lib/cff_1_2_0/urls/I_AC_/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_author(self): assert bibtex_object().add_author().author == "author = {{Test author}}" diff --git a/tests/lib/cff_1_2_0/urls/I_AC_/test_codemeta_object.py b/tests/lib/cff_1_2_0/urls/I_AC_/test_codemeta_object.py index f15b25e5a..e66c88476 100644 --- a/tests/lib/cff_1_2_0/urls/I_AC_/test_codemeta_object.py +++ b/tests/lib/cff_1_2_0/urls/I_AC_/test_codemeta_object.py @@ -18,16 +18,12 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_check_cffobj(self): codemeta_object().check_cffobj() # doesn't need an assert def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert codemeta_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert codemeta_object().add_urls().code_repository == "https://github.com/the-url-from-repository-code" diff --git a/tests/lib/cff_1_2_0/urls/I_AC_/test_endnote_object.py b/tests/lib/cff_1_2_0/urls/I_AC_/test_endnote_object.py index 026e9d28a..6eb7b7310 100644 --- a/tests/lib/cff_1_2_0/urls/I_AC_/test_endnote_object.py +++ b/tests/lib/cff_1_2_0/urls/I_AC_/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_check_cffobj(self): endnote_object().check_cffobj() # doesn't need an assert diff --git a/tests/lib/cff_1_2_0/urls/I_AC_/test_ris_object.py b/tests/lib/cff_1_2_0/urls/I_AC_/test_ris_object.py index aa9f2718a..8f8fca6d3 100644 --- a/tests/lib/cff_1_2_0/urls/I_AC_/test_ris_object.py +++ b/tests/lib/cff_1_2_0/urls/I_AC_/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_2_0/urls/I_AC_/test_schemaorg_object.py b/tests/lib/cff_1_2_0/urls/I_AC_/test_schemaorg_object.py index b231c44fc..604fd42b4 100644 --- a/tests/lib/cff_1_2_0/urls/I_AC_/test_schemaorg_object.py +++ b/tests/lib/cff_1_2_0/urls/I_AC_/test_schemaorg_object.py @@ -18,16 +18,12 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_check_cffobj(self): schemaorg_object().check_cffobj() # doesn't need an assert def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert schemaorg_object().add_urls().code_repository == "https://github.com/the-url-from-repository-code" diff --git a/tests/lib/cff_1_2_0/urls/I_AC_/test_zenodo_object.py b/tests/lib/cff_1_2_0/urls/I_AC_/test_zenodo_object.py index 66557c8d7..b9765418c 100644 --- a/tests/lib/cff_1_2_0/urls/I_AC_/test_zenodo_object.py +++ b/tests/lib/cff_1_2_0/urls/I_AC_/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,9 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [{ - "name": "Test author" - }] + assert zenodo_object().add_creators().creators == [{"name": "Test author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None @@ -48,19 +45,23 @@ def test_publication_date(self): assert zenodo_object().add_publication_date().publication_date is None def test_related_identifiers(self): - assert zenodo_object().add_related_identifiers().related_identifiers == [{ - "identifier": "https://github.com/the-url-from-identifiers", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-repository-artifact", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-repository-code", - "relation": "isSupplementedBy", - "scheme": "url" - }] + assert zenodo_object().add_related_identifiers().related_identifiers == [ + { + "identifier": "https://github.com/the-url-from-identifiers", + "relation": "isSupplementedBy", + "scheme": "url", + }, + { + "identifier": "https://github.com/the-url-from-repository-artifact", + "relation": "isSupplementedBy", + "scheme": "url", + }, + { + "identifier": "https://github.com/the-url-from-repository-code", + "relation": "isSupplementedBy", + "scheme": "url", + }, + ] def test_title(self): assert zenodo_object().add_title().title == "Test title" diff --git a/tests/lib/cff_1_2_0/urls/I_A_U/test_apalike_object.py b/tests/lib/cff_1_2_0/urls/I_A_U/test_apalike_object.py index 018d5d511..01e4aff55 100644 --- a/tests/lib/cff_1_2_0/urls/I_A_U/test_apalike_object.py +++ b/tests/lib/cff_1_2_0/urls/I_A_U/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_author(self): assert apalike_object().add_author().author == "Test author" diff --git a/tests/lib/cff_1_2_0/urls/I_A_U/test_bibtex_object.py b/tests/lib/cff_1_2_0/urls/I_A_U/test_bibtex_object.py index 422a107af..820c89401 100644 --- a/tests/lib/cff_1_2_0/urls/I_A_U/test_bibtex_object.py +++ b/tests/lib/cff_1_2_0/urls/I_A_U/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_author(self): assert bibtex_object().add_author().author == "author = {{Test author}}" diff --git a/tests/lib/cff_1_2_0/urls/I_A_U/test_codemeta_object.py b/tests/lib/cff_1_2_0/urls/I_A_U/test_codemeta_object.py index 982a880e2..f7840f7ea 100644 --- a/tests/lib/cff_1_2_0/urls/I_A_U/test_codemeta_object.py +++ b/tests/lib/cff_1_2_0/urls/I_A_U/test_codemeta_object.py @@ -18,16 +18,12 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_check_cffobj(self): codemeta_object().check_cffobj() # doesn't need an assert def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert codemeta_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert codemeta_object().add_urls().code_repository is None diff --git a/tests/lib/cff_1_2_0/urls/I_A_U/test_endnote_object.py b/tests/lib/cff_1_2_0/urls/I_A_U/test_endnote_object.py index 026e9d28a..6eb7b7310 100644 --- a/tests/lib/cff_1_2_0/urls/I_A_U/test_endnote_object.py +++ b/tests/lib/cff_1_2_0/urls/I_A_U/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_check_cffobj(self): endnote_object().check_cffobj() # doesn't need an assert diff --git a/tests/lib/cff_1_2_0/urls/I_A_U/test_ris_object.py b/tests/lib/cff_1_2_0/urls/I_A_U/test_ris_object.py index aa9f2718a..8f8fca6d3 100644 --- a/tests/lib/cff_1_2_0/urls/I_A_U/test_ris_object.py +++ b/tests/lib/cff_1_2_0/urls/I_A_U/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_2_0/urls/I_A_U/test_schemaorg_object.py b/tests/lib/cff_1_2_0/urls/I_A_U/test_schemaorg_object.py index a438e39d5..dc71cd724 100644 --- a/tests/lib/cff_1_2_0/urls/I_A_U/test_schemaorg_object.py +++ b/tests/lib/cff_1_2_0/urls/I_A_U/test_schemaorg_object.py @@ -18,16 +18,12 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_check_cffobj(self): schemaorg_object().check_cffobj() # doesn't need an assert def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert schemaorg_object().add_urls().code_repository is None diff --git a/tests/lib/cff_1_2_0/urls/I_A_U/test_zenodo_object.py b/tests/lib/cff_1_2_0/urls/I_A_U/test_zenodo_object.py index 73ce35cbc..3b1dd21c8 100644 --- a/tests/lib/cff_1_2_0/urls/I_A_U/test_zenodo_object.py +++ b/tests/lib/cff_1_2_0/urls/I_A_U/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,9 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [{ - "name": "Test author" - }] + assert zenodo_object().add_creators().creators == [{"name": "Test author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None @@ -48,19 +45,19 @@ def test_publication_date(self): assert zenodo_object().add_publication_date().publication_date is None def test_related_identifiers(self): - assert zenodo_object().add_related_identifiers().related_identifiers == [{ - "identifier": "https://github.com/the-url-from-identifiers", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-repository-artifact", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-url", - "relation": "isSupplementedBy", - "scheme": "url" - }] + assert zenodo_object().add_related_identifiers().related_identifiers == [ + { + "identifier": "https://github.com/the-url-from-identifiers", + "relation": "isSupplementedBy", + "scheme": "url", + }, + { + "identifier": "https://github.com/the-url-from-repository-artifact", + "relation": "isSupplementedBy", + "scheme": "url", + }, + {"identifier": "https://github.com/the-url-from-url", "relation": "isSupplementedBy", "scheme": "url"}, + ] def test_title(self): assert zenodo_object().add_title().title == "Test title" diff --git a/tests/lib/cff_1_2_0/urls/I_A__/test_apalike_object.py b/tests/lib/cff_1_2_0/urls/I_A__/test_apalike_object.py index 018d5d511..01e4aff55 100644 --- a/tests/lib/cff_1_2_0/urls/I_A__/test_apalike_object.py +++ b/tests/lib/cff_1_2_0/urls/I_A__/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_author(self): assert apalike_object().add_author().author == "Test author" diff --git a/tests/lib/cff_1_2_0/urls/I_A__/test_bibtex_object.py b/tests/lib/cff_1_2_0/urls/I_A__/test_bibtex_object.py index 422a107af..820c89401 100644 --- a/tests/lib/cff_1_2_0/urls/I_A__/test_bibtex_object.py +++ b/tests/lib/cff_1_2_0/urls/I_A__/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_author(self): assert bibtex_object().add_author().author == "author = {{Test author}}" diff --git a/tests/lib/cff_1_2_0/urls/I_A__/test_codemeta_object.py b/tests/lib/cff_1_2_0/urls/I_A__/test_codemeta_object.py index 982a880e2..f7840f7ea 100644 --- a/tests/lib/cff_1_2_0/urls/I_A__/test_codemeta_object.py +++ b/tests/lib/cff_1_2_0/urls/I_A__/test_codemeta_object.py @@ -18,16 +18,12 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_check_cffobj(self): codemeta_object().check_cffobj() # doesn't need an assert def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert codemeta_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert codemeta_object().add_urls().code_repository is None diff --git a/tests/lib/cff_1_2_0/urls/I_A__/test_endnote_object.py b/tests/lib/cff_1_2_0/urls/I_A__/test_endnote_object.py index 026e9d28a..6eb7b7310 100644 --- a/tests/lib/cff_1_2_0/urls/I_A__/test_endnote_object.py +++ b/tests/lib/cff_1_2_0/urls/I_A__/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_check_cffobj(self): endnote_object().check_cffobj() # doesn't need an assert diff --git a/tests/lib/cff_1_2_0/urls/I_A__/test_ris_object.py b/tests/lib/cff_1_2_0/urls/I_A__/test_ris_object.py index aa9f2718a..8f8fca6d3 100644 --- a/tests/lib/cff_1_2_0/urls/I_A__/test_ris_object.py +++ b/tests/lib/cff_1_2_0/urls/I_A__/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_2_0/urls/I_A__/test_schemaorg_object.py b/tests/lib/cff_1_2_0/urls/I_A__/test_schemaorg_object.py index a438e39d5..dc71cd724 100644 --- a/tests/lib/cff_1_2_0/urls/I_A__/test_schemaorg_object.py +++ b/tests/lib/cff_1_2_0/urls/I_A__/test_schemaorg_object.py @@ -18,16 +18,12 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_check_cffobj(self): schemaorg_object().check_cffobj() # doesn't need an assert def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert schemaorg_object().add_urls().code_repository is None diff --git a/tests/lib/cff_1_2_0/urls/I_A__/test_zenodo_object.py b/tests/lib/cff_1_2_0/urls/I_A__/test_zenodo_object.py index e90312a64..8f9d0d78d 100644 --- a/tests/lib/cff_1_2_0/urls/I_A__/test_zenodo_object.py +++ b/tests/lib/cff_1_2_0/urls/I_A__/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,9 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [{ - "name": "Test author" - }] + assert zenodo_object().add_creators().creators == [{"name": "Test author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None @@ -48,15 +45,18 @@ def test_publication_date(self): assert zenodo_object().add_publication_date().publication_date is None def test_related_identifiers(self): - assert zenodo_object().add_related_identifiers().related_identifiers == [{ - "identifier": "https://github.com/the-url-from-identifiers", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-repository-artifact", - "relation": "isSupplementedBy", - "scheme": "url" - }] + assert zenodo_object().add_related_identifiers().related_identifiers == [ + { + "identifier": "https://github.com/the-url-from-identifiers", + "relation": "isSupplementedBy", + "scheme": "url", + }, + { + "identifier": "https://github.com/the-url-from-repository-artifact", + "relation": "isSupplementedBy", + "scheme": "url", + }, + ] def test_title(self): assert zenodo_object().add_title().title == "Test title" diff --git a/tests/lib/cff_1_2_0/urls/I__CU/test_apalike_object.py b/tests/lib/cff_1_2_0/urls/I__CU/test_apalike_object.py index 018d5d511..01e4aff55 100644 --- a/tests/lib/cff_1_2_0/urls/I__CU/test_apalike_object.py +++ b/tests/lib/cff_1_2_0/urls/I__CU/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_author(self): assert apalike_object().add_author().author == "Test author" diff --git a/tests/lib/cff_1_2_0/urls/I__CU/test_bibtex_object.py b/tests/lib/cff_1_2_0/urls/I__CU/test_bibtex_object.py index 422a107af..820c89401 100644 --- a/tests/lib/cff_1_2_0/urls/I__CU/test_bibtex_object.py +++ b/tests/lib/cff_1_2_0/urls/I__CU/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_author(self): assert bibtex_object().add_author().author == "author = {{Test author}}" diff --git a/tests/lib/cff_1_2_0/urls/I__CU/test_codemeta_object.py b/tests/lib/cff_1_2_0/urls/I__CU/test_codemeta_object.py index f15b25e5a..e66c88476 100644 --- a/tests/lib/cff_1_2_0/urls/I__CU/test_codemeta_object.py +++ b/tests/lib/cff_1_2_0/urls/I__CU/test_codemeta_object.py @@ -18,16 +18,12 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_check_cffobj(self): codemeta_object().check_cffobj() # doesn't need an assert def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert codemeta_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert codemeta_object().add_urls().code_repository == "https://github.com/the-url-from-repository-code" diff --git a/tests/lib/cff_1_2_0/urls/I__CU/test_endnote_object.py b/tests/lib/cff_1_2_0/urls/I__CU/test_endnote_object.py index 026e9d28a..6eb7b7310 100644 --- a/tests/lib/cff_1_2_0/urls/I__CU/test_endnote_object.py +++ b/tests/lib/cff_1_2_0/urls/I__CU/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_check_cffobj(self): endnote_object().check_cffobj() # doesn't need an assert diff --git a/tests/lib/cff_1_2_0/urls/I__CU/test_ris_object.py b/tests/lib/cff_1_2_0/urls/I__CU/test_ris_object.py index aa9f2718a..8f8fca6d3 100644 --- a/tests/lib/cff_1_2_0/urls/I__CU/test_ris_object.py +++ b/tests/lib/cff_1_2_0/urls/I__CU/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_2_0/urls/I__CU/test_schemaorg_object.py b/tests/lib/cff_1_2_0/urls/I__CU/test_schemaorg_object.py index b231c44fc..604fd42b4 100644 --- a/tests/lib/cff_1_2_0/urls/I__CU/test_schemaorg_object.py +++ b/tests/lib/cff_1_2_0/urls/I__CU/test_schemaorg_object.py @@ -18,16 +18,12 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_check_cffobj(self): schemaorg_object().check_cffobj() # doesn't need an assert def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert schemaorg_object().add_urls().code_repository == "https://github.com/the-url-from-repository-code" diff --git a/tests/lib/cff_1_2_0/urls/I__CU/test_zenodo_object.py b/tests/lib/cff_1_2_0/urls/I__CU/test_zenodo_object.py index 845cf22d2..30a4786cc 100644 --- a/tests/lib/cff_1_2_0/urls/I__CU/test_zenodo_object.py +++ b/tests/lib/cff_1_2_0/urls/I__CU/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,9 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [{ - "name": "Test author" - }] + assert zenodo_object().add_creators().creators == [{"name": "Test author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None @@ -48,19 +45,19 @@ def test_publication_date(self): assert zenodo_object().add_publication_date().publication_date is None def test_related_identifiers(self): - assert zenodo_object().add_related_identifiers().related_identifiers == [{ - "identifier": "https://github.com/the-url-from-identifiers", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-repository-code", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-url", - "relation": "isSupplementedBy", - "scheme": "url" - }] + assert zenodo_object().add_related_identifiers().related_identifiers == [ + { + "identifier": "https://github.com/the-url-from-identifiers", + "relation": "isSupplementedBy", + "scheme": "url", + }, + { + "identifier": "https://github.com/the-url-from-repository-code", + "relation": "isSupplementedBy", + "scheme": "url", + }, + {"identifier": "https://github.com/the-url-from-url", "relation": "isSupplementedBy", "scheme": "url"}, + ] def test_title(self): assert zenodo_object().add_title().title == "Test title" diff --git a/tests/lib/cff_1_2_0/urls/I__C_/test_apalike_object.py b/tests/lib/cff_1_2_0/urls/I__C_/test_apalike_object.py index 018d5d511..01e4aff55 100644 --- a/tests/lib/cff_1_2_0/urls/I__C_/test_apalike_object.py +++ b/tests/lib/cff_1_2_0/urls/I__C_/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_author(self): assert apalike_object().add_author().author == "Test author" diff --git a/tests/lib/cff_1_2_0/urls/I__C_/test_bibtex_object.py b/tests/lib/cff_1_2_0/urls/I__C_/test_bibtex_object.py index 422a107af..820c89401 100644 --- a/tests/lib/cff_1_2_0/urls/I__C_/test_bibtex_object.py +++ b/tests/lib/cff_1_2_0/urls/I__C_/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_author(self): assert bibtex_object().add_author().author == "author = {{Test author}}" diff --git a/tests/lib/cff_1_2_0/urls/I__C_/test_codemeta_object.py b/tests/lib/cff_1_2_0/urls/I__C_/test_codemeta_object.py index f15b25e5a..e66c88476 100644 --- a/tests/lib/cff_1_2_0/urls/I__C_/test_codemeta_object.py +++ b/tests/lib/cff_1_2_0/urls/I__C_/test_codemeta_object.py @@ -18,16 +18,12 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_check_cffobj(self): codemeta_object().check_cffobj() # doesn't need an assert def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert codemeta_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert codemeta_object().add_urls().code_repository == "https://github.com/the-url-from-repository-code" diff --git a/tests/lib/cff_1_2_0/urls/I__C_/test_endnote_object.py b/tests/lib/cff_1_2_0/urls/I__C_/test_endnote_object.py index 026e9d28a..6eb7b7310 100644 --- a/tests/lib/cff_1_2_0/urls/I__C_/test_endnote_object.py +++ b/tests/lib/cff_1_2_0/urls/I__C_/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_check_cffobj(self): endnote_object().check_cffobj() # doesn't need an assert diff --git a/tests/lib/cff_1_2_0/urls/I__C_/test_ris_object.py b/tests/lib/cff_1_2_0/urls/I__C_/test_ris_object.py index aa9f2718a..8f8fca6d3 100644 --- a/tests/lib/cff_1_2_0/urls/I__C_/test_ris_object.py +++ b/tests/lib/cff_1_2_0/urls/I__C_/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_2_0/urls/I__C_/test_schemaorg_object.py b/tests/lib/cff_1_2_0/urls/I__C_/test_schemaorg_object.py index b231c44fc..604fd42b4 100644 --- a/tests/lib/cff_1_2_0/urls/I__C_/test_schemaorg_object.py +++ b/tests/lib/cff_1_2_0/urls/I__C_/test_schemaorg_object.py @@ -18,16 +18,12 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_check_cffobj(self): schemaorg_object().check_cffobj() # doesn't need an assert def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert schemaorg_object().add_urls().code_repository == "https://github.com/the-url-from-repository-code" diff --git a/tests/lib/cff_1_2_0/urls/I__C_/test_zenodo_object.py b/tests/lib/cff_1_2_0/urls/I__C_/test_zenodo_object.py index 8dc3a979d..6293ec50f 100644 --- a/tests/lib/cff_1_2_0/urls/I__C_/test_zenodo_object.py +++ b/tests/lib/cff_1_2_0/urls/I__C_/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,9 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [{ - "name": "Test author" - }] + assert zenodo_object().add_creators().creators == [{"name": "Test author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None @@ -48,15 +45,18 @@ def test_publication_date(self): assert zenodo_object().add_publication_date().publication_date is None def test_related_identifiers(self): - assert zenodo_object().add_related_identifiers().related_identifiers == [{ - "identifier": "https://github.com/the-url-from-identifiers", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-repository-code", - "relation": "isSupplementedBy", - "scheme": "url" - }] + assert zenodo_object().add_related_identifiers().related_identifiers == [ + { + "identifier": "https://github.com/the-url-from-identifiers", + "relation": "isSupplementedBy", + "scheme": "url", + }, + { + "identifier": "https://github.com/the-url-from-repository-code", + "relation": "isSupplementedBy", + "scheme": "url", + }, + ] def test_title(self): assert zenodo_object().add_title().title == "Test title" diff --git a/tests/lib/cff_1_2_0/urls/I___U/test_apalike_object.py b/tests/lib/cff_1_2_0/urls/I___U/test_apalike_object.py index 018d5d511..01e4aff55 100644 --- a/tests/lib/cff_1_2_0/urls/I___U/test_apalike_object.py +++ b/tests/lib/cff_1_2_0/urls/I___U/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_author(self): assert apalike_object().add_author().author == "Test author" diff --git a/tests/lib/cff_1_2_0/urls/I___U/test_bibtex_object.py b/tests/lib/cff_1_2_0/urls/I___U/test_bibtex_object.py index 422a107af..820c89401 100644 --- a/tests/lib/cff_1_2_0/urls/I___U/test_bibtex_object.py +++ b/tests/lib/cff_1_2_0/urls/I___U/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_author(self): assert bibtex_object().add_author().author == "author = {{Test author}}" diff --git a/tests/lib/cff_1_2_0/urls/I___U/test_codemeta_object.py b/tests/lib/cff_1_2_0/urls/I___U/test_codemeta_object.py index 982a880e2..f7840f7ea 100644 --- a/tests/lib/cff_1_2_0/urls/I___U/test_codemeta_object.py +++ b/tests/lib/cff_1_2_0/urls/I___U/test_codemeta_object.py @@ -18,16 +18,12 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_check_cffobj(self): codemeta_object().check_cffobj() # doesn't need an assert def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert codemeta_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert codemeta_object().add_urls().code_repository is None diff --git a/tests/lib/cff_1_2_0/urls/I___U/test_endnote_object.py b/tests/lib/cff_1_2_0/urls/I___U/test_endnote_object.py index 026e9d28a..6eb7b7310 100644 --- a/tests/lib/cff_1_2_0/urls/I___U/test_endnote_object.py +++ b/tests/lib/cff_1_2_0/urls/I___U/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_check_cffobj(self): endnote_object().check_cffobj() # doesn't need an assert diff --git a/tests/lib/cff_1_2_0/urls/I___U/test_ris_object.py b/tests/lib/cff_1_2_0/urls/I___U/test_ris_object.py index aa9f2718a..8f8fca6d3 100644 --- a/tests/lib/cff_1_2_0/urls/I___U/test_ris_object.py +++ b/tests/lib/cff_1_2_0/urls/I___U/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_2_0/urls/I___U/test_schemaorg_object.py b/tests/lib/cff_1_2_0/urls/I___U/test_schemaorg_object.py index a438e39d5..dc71cd724 100644 --- a/tests/lib/cff_1_2_0/urls/I___U/test_schemaorg_object.py +++ b/tests/lib/cff_1_2_0/urls/I___U/test_schemaorg_object.py @@ -18,16 +18,12 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_check_cffobj(self): schemaorg_object().check_cffobj() # doesn't need an assert def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert schemaorg_object().add_urls().code_repository is None diff --git a/tests/lib/cff_1_2_0/urls/I___U/test_zenodo_object.py b/tests/lib/cff_1_2_0/urls/I___U/test_zenodo_object.py index 068a89860..7c3aae55b 100644 --- a/tests/lib/cff_1_2_0/urls/I___U/test_zenodo_object.py +++ b/tests/lib/cff_1_2_0/urls/I___U/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,9 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [{ - "name": "Test author" - }] + assert zenodo_object().add_creators().creators == [{"name": "Test author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None @@ -48,15 +45,14 @@ def test_publication_date(self): assert zenodo_object().add_publication_date().publication_date is None def test_related_identifiers(self): - assert zenodo_object().add_related_identifiers().related_identifiers == [{ - "identifier": "https://github.com/the-url-from-identifiers", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-url", - "relation": "isSupplementedBy", - "scheme": "url" - }] + assert zenodo_object().add_related_identifiers().related_identifiers == [ + { + "identifier": "https://github.com/the-url-from-identifiers", + "relation": "isSupplementedBy", + "scheme": "url", + }, + {"identifier": "https://github.com/the-url-from-url", "relation": "isSupplementedBy", "scheme": "url"}, + ] def test_title(self): assert zenodo_object().add_title().title == "Test title" diff --git a/tests/lib/cff_1_2_0/urls/I____/test_apalike_object.py b/tests/lib/cff_1_2_0/urls/I____/test_apalike_object.py index 018d5d511..01e4aff55 100644 --- a/tests/lib/cff_1_2_0/urls/I____/test_apalike_object.py +++ b/tests/lib/cff_1_2_0/urls/I____/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_author(self): assert apalike_object().add_author().author == "Test author" diff --git a/tests/lib/cff_1_2_0/urls/I____/test_bibtex_object.py b/tests/lib/cff_1_2_0/urls/I____/test_bibtex_object.py index 422a107af..820c89401 100644 --- a/tests/lib/cff_1_2_0/urls/I____/test_bibtex_object.py +++ b/tests/lib/cff_1_2_0/urls/I____/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_author(self): assert bibtex_object().add_author().author == "author = {{Test author}}" diff --git a/tests/lib/cff_1_2_0/urls/I____/test_codemeta_object.py b/tests/lib/cff_1_2_0/urls/I____/test_codemeta_object.py index 982a880e2..f7840f7ea 100644 --- a/tests/lib/cff_1_2_0/urls/I____/test_codemeta_object.py +++ b/tests/lib/cff_1_2_0/urls/I____/test_codemeta_object.py @@ -18,16 +18,12 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_check_cffobj(self): codemeta_object().check_cffobj() # doesn't need an assert def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert codemeta_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert codemeta_object().add_urls().code_repository is None diff --git a/tests/lib/cff_1_2_0/urls/I____/test_endnote_object.py b/tests/lib/cff_1_2_0/urls/I____/test_endnote_object.py index 026e9d28a..6eb7b7310 100644 --- a/tests/lib/cff_1_2_0/urls/I____/test_endnote_object.py +++ b/tests/lib/cff_1_2_0/urls/I____/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_check_cffobj(self): endnote_object().check_cffobj() # doesn't need an assert diff --git a/tests/lib/cff_1_2_0/urls/I____/test_ris_object.py b/tests/lib/cff_1_2_0/urls/I____/test_ris_object.py index aa9f2718a..8f8fca6d3 100644 --- a/tests/lib/cff_1_2_0/urls/I____/test_ris_object.py +++ b/tests/lib/cff_1_2_0/urls/I____/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_2_0/urls/I____/test_schemaorg_object.py b/tests/lib/cff_1_2_0/urls/I____/test_schemaorg_object.py index a438e39d5..dc71cd724 100644 --- a/tests/lib/cff_1_2_0/urls/I____/test_schemaorg_object.py +++ b/tests/lib/cff_1_2_0/urls/I____/test_schemaorg_object.py @@ -18,16 +18,12 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_check_cffobj(self): schemaorg_object().check_cffobj() # doesn't need an assert def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert schemaorg_object().add_urls().code_repository is None diff --git a/tests/lib/cff_1_2_0/urls/I____/test_zenodo_object.py b/tests/lib/cff_1_2_0/urls/I____/test_zenodo_object.py index c0c93fed1..9fe0cf0e3 100644 --- a/tests/lib/cff_1_2_0/urls/I____/test_zenodo_object.py +++ b/tests/lib/cff_1_2_0/urls/I____/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,9 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [{ - "name": "Test author" - }] + assert zenodo_object().add_creators().creators == [{"name": "Test author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None @@ -48,11 +45,13 @@ def test_publication_date(self): assert zenodo_object().add_publication_date().publication_date is None def test_related_identifiers(self): - assert zenodo_object().add_related_identifiers().related_identifiers == [{ - "identifier": "https://github.com/the-url-from-identifiers", - "relation": "isSupplementedBy", - "scheme": "url" - }] + assert zenodo_object().add_related_identifiers().related_identifiers == [ + { + "identifier": "https://github.com/the-url-from-identifiers", + "relation": "isSupplementedBy", + "scheme": "url", + } + ] def test_title(self): assert zenodo_object().add_title().title == "Test title" diff --git a/tests/lib/cff_1_2_0/urls/_RACU/test_apalike_object.py b/tests/lib/cff_1_2_0/urls/_RACU/test_apalike_object.py index 90f7529b7..d7d59a418 100644 --- a/tests/lib/cff_1_2_0/urls/_RACU/test_apalike_object.py +++ b/tests/lib/cff_1_2_0/urls/_RACU/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_author(self): assert apalike_object().add_author().author == "Test author" diff --git a/tests/lib/cff_1_2_0/urls/_RACU/test_bibtex_object.py b/tests/lib/cff_1_2_0/urls/_RACU/test_bibtex_object.py index e8f356531..b5671783d 100644 --- a/tests/lib/cff_1_2_0/urls/_RACU/test_bibtex_object.py +++ b/tests/lib/cff_1_2_0/urls/_RACU/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_author(self): assert bibtex_object().add_author().author == "author = {{Test author}}" diff --git a/tests/lib/cff_1_2_0/urls/_RACU/test_codemeta_object.py b/tests/lib/cff_1_2_0/urls/_RACU/test_codemeta_object.py index c41d178f8..27d1b32df 100644 --- a/tests/lib/cff_1_2_0/urls/_RACU/test_codemeta_object.py +++ b/tests/lib/cff_1_2_0/urls/_RACU/test_codemeta_object.py @@ -18,16 +18,12 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_check_cffobj(self): codemeta_object().check_cffobj() # doesn't need an assert def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert codemeta_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert codemeta_object().add_urls().code_repository == "https://github.com/the-url-from-repository-code" diff --git a/tests/lib/cff_1_2_0/urls/_RACU/test_endnote_object.py b/tests/lib/cff_1_2_0/urls/_RACU/test_endnote_object.py index 562d35926..89d8d1d5f 100644 --- a/tests/lib/cff_1_2_0/urls/_RACU/test_endnote_object.py +++ b/tests/lib/cff_1_2_0/urls/_RACU/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_check_cffobj(self): endnote_object().check_cffobj() # doesn't need an assert diff --git a/tests/lib/cff_1_2_0/urls/_RACU/test_ris_object.py b/tests/lib/cff_1_2_0/urls/_RACU/test_ris_object.py index 4f099cf97..22f05bf4c 100644 --- a/tests/lib/cff_1_2_0/urls/_RACU/test_ris_object.py +++ b/tests/lib/cff_1_2_0/urls/_RACU/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_2_0/urls/_RACU/test_schemaorg_object.py b/tests/lib/cff_1_2_0/urls/_RACU/test_schemaorg_object.py index 7bcbb5ae5..78558e918 100644 --- a/tests/lib/cff_1_2_0/urls/_RACU/test_schemaorg_object.py +++ b/tests/lib/cff_1_2_0/urls/_RACU/test_schemaorg_object.py @@ -18,16 +18,12 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_check_cffobj(self): schemaorg_object().check_cffobj() # doesn't need an assert def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert schemaorg_object().add_urls().code_repository == "https://github.com/the-url-from-repository-code" diff --git a/tests/lib/cff_1_2_0/urls/_RACU/test_zenodo_object.py b/tests/lib/cff_1_2_0/urls/_RACU/test_zenodo_object.py index e3af508b9..68ca52933 100644 --- a/tests/lib/cff_1_2_0/urls/_RACU/test_zenodo_object.py +++ b/tests/lib/cff_1_2_0/urls/_RACU/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,9 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [{ - "name": "Test author" - }] + assert zenodo_object().add_creators().creators == [{"name": "Test author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None @@ -48,23 +45,24 @@ def test_publication_date(self): assert zenodo_object().add_publication_date().publication_date is None def test_related_identifiers(self): - assert zenodo_object().add_related_identifiers().related_identifiers == [{ - "identifier": "https://github.com/the-url-from-repository", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-repository-artifact", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-repository-code", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-url", - "relation": "isSupplementedBy", - "scheme": "url" - }] + assert zenodo_object().add_related_identifiers().related_identifiers == [ + { + "identifier": "https://github.com/the-url-from-repository", + "relation": "isSupplementedBy", + "scheme": "url", + }, + { + "identifier": "https://github.com/the-url-from-repository-artifact", + "relation": "isSupplementedBy", + "scheme": "url", + }, + { + "identifier": "https://github.com/the-url-from-repository-code", + "relation": "isSupplementedBy", + "scheme": "url", + }, + {"identifier": "https://github.com/the-url-from-url", "relation": "isSupplementedBy", "scheme": "url"}, + ] def test_title(self): assert zenodo_object().add_title().title == "Test title" diff --git a/tests/lib/cff_1_2_0/urls/_RAC_/test_apalike_object.py b/tests/lib/cff_1_2_0/urls/_RAC_/test_apalike_object.py index d6ed763a2..6e898516d 100644 --- a/tests/lib/cff_1_2_0/urls/_RAC_/test_apalike_object.py +++ b/tests/lib/cff_1_2_0/urls/_RAC_/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_author(self): assert apalike_object().add_author().author == "Test author" diff --git a/tests/lib/cff_1_2_0/urls/_RAC_/test_bibtex_object.py b/tests/lib/cff_1_2_0/urls/_RAC_/test_bibtex_object.py index fbcfb7bfe..ba9acc7f6 100644 --- a/tests/lib/cff_1_2_0/urls/_RAC_/test_bibtex_object.py +++ b/tests/lib/cff_1_2_0/urls/_RAC_/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_author(self): assert bibtex_object().add_author().author == "author = {{Test author}}" diff --git a/tests/lib/cff_1_2_0/urls/_RAC_/test_codemeta_object.py b/tests/lib/cff_1_2_0/urls/_RAC_/test_codemeta_object.py index 788d0ee02..1a1b879fd 100644 --- a/tests/lib/cff_1_2_0/urls/_RAC_/test_codemeta_object.py +++ b/tests/lib/cff_1_2_0/urls/_RAC_/test_codemeta_object.py @@ -18,16 +18,12 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_check_cffobj(self): codemeta_object().check_cffobj() # doesn't need an assert def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert codemeta_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert codemeta_object().add_urls().code_repository == "https://github.com/the-url-from-repository-code" diff --git a/tests/lib/cff_1_2_0/urls/_RAC_/test_endnote_object.py b/tests/lib/cff_1_2_0/urls/_RAC_/test_endnote_object.py index 2c7290531..7887eb656 100644 --- a/tests/lib/cff_1_2_0/urls/_RAC_/test_endnote_object.py +++ b/tests/lib/cff_1_2_0/urls/_RAC_/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_check_cffobj(self): endnote_object().check_cffobj() # doesn't need an assert diff --git a/tests/lib/cff_1_2_0/urls/_RAC_/test_ris_object.py b/tests/lib/cff_1_2_0/urls/_RAC_/test_ris_object.py index 972aab364..042df192a 100644 --- a/tests/lib/cff_1_2_0/urls/_RAC_/test_ris_object.py +++ b/tests/lib/cff_1_2_0/urls/_RAC_/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_2_0/urls/_RAC_/test_schemaorg_object.py b/tests/lib/cff_1_2_0/urls/_RAC_/test_schemaorg_object.py index dd8761f29..4a3ebb910 100644 --- a/tests/lib/cff_1_2_0/urls/_RAC_/test_schemaorg_object.py +++ b/tests/lib/cff_1_2_0/urls/_RAC_/test_schemaorg_object.py @@ -18,16 +18,12 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_check_cffobj(self): schemaorg_object().check_cffobj() # doesn't need an assert def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert schemaorg_object().add_urls().code_repository == "https://github.com/the-url-from-repository-code" diff --git a/tests/lib/cff_1_2_0/urls/_RAC_/test_zenodo_object.py b/tests/lib/cff_1_2_0/urls/_RAC_/test_zenodo_object.py index 0cd298bf2..58d0bd347 100644 --- a/tests/lib/cff_1_2_0/urls/_RAC_/test_zenodo_object.py +++ b/tests/lib/cff_1_2_0/urls/_RAC_/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,9 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [{ - "name": "Test author" - }] + assert zenodo_object().add_creators().creators == [{"name": "Test author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None @@ -48,19 +45,23 @@ def test_publication_date(self): assert zenodo_object().add_publication_date().publication_date is None def test_related_identifiers(self): - assert zenodo_object().add_related_identifiers().related_identifiers == [{ - "identifier": "https://github.com/the-url-from-repository", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-repository-artifact", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-repository-code", - "relation": "isSupplementedBy", - "scheme": "url" - }] + assert zenodo_object().add_related_identifiers().related_identifiers == [ + { + "identifier": "https://github.com/the-url-from-repository", + "relation": "isSupplementedBy", + "scheme": "url", + }, + { + "identifier": "https://github.com/the-url-from-repository-artifact", + "relation": "isSupplementedBy", + "scheme": "url", + }, + { + "identifier": "https://github.com/the-url-from-repository-code", + "relation": "isSupplementedBy", + "scheme": "url", + }, + ] def test_title(self): assert zenodo_object().add_title().title == "Test title" diff --git a/tests/lib/cff_1_2_0/urls/_RA_U/test_apalike_object.py b/tests/lib/cff_1_2_0/urls/_RA_U/test_apalike_object.py index 90f7529b7..d7d59a418 100644 --- a/tests/lib/cff_1_2_0/urls/_RA_U/test_apalike_object.py +++ b/tests/lib/cff_1_2_0/urls/_RA_U/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_author(self): assert apalike_object().add_author().author == "Test author" diff --git a/tests/lib/cff_1_2_0/urls/_RA_U/test_bibtex_object.py b/tests/lib/cff_1_2_0/urls/_RA_U/test_bibtex_object.py index e8f356531..b5671783d 100644 --- a/tests/lib/cff_1_2_0/urls/_RA_U/test_bibtex_object.py +++ b/tests/lib/cff_1_2_0/urls/_RA_U/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_author(self): assert bibtex_object().add_author().author == "author = {{Test author}}" diff --git a/tests/lib/cff_1_2_0/urls/_RA_U/test_codemeta_object.py b/tests/lib/cff_1_2_0/urls/_RA_U/test_codemeta_object.py index d05dcc0e3..881913b8d 100644 --- a/tests/lib/cff_1_2_0/urls/_RA_U/test_codemeta_object.py +++ b/tests/lib/cff_1_2_0/urls/_RA_U/test_codemeta_object.py @@ -18,16 +18,12 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_check_cffobj(self): codemeta_object().check_cffobj() # doesn't need an assert def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert codemeta_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert codemeta_object().add_urls().code_repository == "https://github.com/the-url-from-repository" diff --git a/tests/lib/cff_1_2_0/urls/_RA_U/test_endnote_object.py b/tests/lib/cff_1_2_0/urls/_RA_U/test_endnote_object.py index 562d35926..89d8d1d5f 100644 --- a/tests/lib/cff_1_2_0/urls/_RA_U/test_endnote_object.py +++ b/tests/lib/cff_1_2_0/urls/_RA_U/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_check_cffobj(self): endnote_object().check_cffobj() # doesn't need an assert diff --git a/tests/lib/cff_1_2_0/urls/_RA_U/test_ris_object.py b/tests/lib/cff_1_2_0/urls/_RA_U/test_ris_object.py index 4f099cf97..22f05bf4c 100644 --- a/tests/lib/cff_1_2_0/urls/_RA_U/test_ris_object.py +++ b/tests/lib/cff_1_2_0/urls/_RA_U/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_2_0/urls/_RA_U/test_schemaorg_object.py b/tests/lib/cff_1_2_0/urls/_RA_U/test_schemaorg_object.py index e26db9907..b0a96c2b1 100644 --- a/tests/lib/cff_1_2_0/urls/_RA_U/test_schemaorg_object.py +++ b/tests/lib/cff_1_2_0/urls/_RA_U/test_schemaorg_object.py @@ -18,16 +18,12 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_check_cffobj(self): schemaorg_object().check_cffobj() # doesn't need an assert def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert schemaorg_object().add_urls().code_repository == "https://github.com/the-url-from-repository" diff --git a/tests/lib/cff_1_2_0/urls/_RA_U/test_zenodo_object.py b/tests/lib/cff_1_2_0/urls/_RA_U/test_zenodo_object.py index 22b97406f..ba0d230b7 100644 --- a/tests/lib/cff_1_2_0/urls/_RA_U/test_zenodo_object.py +++ b/tests/lib/cff_1_2_0/urls/_RA_U/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,9 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [{ - "name": "Test author" - }] + assert zenodo_object().add_creators().creators == [{"name": "Test author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None @@ -48,19 +45,19 @@ def test_publication_date(self): assert zenodo_object().add_publication_date().publication_date is None def test_related_identifiers(self): - assert zenodo_object().add_related_identifiers().related_identifiers == [{ - "identifier": "https://github.com/the-url-from-repository", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-repository-artifact", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-url", - "relation": "isSupplementedBy", - "scheme": "url" - }] + assert zenodo_object().add_related_identifiers().related_identifiers == [ + { + "identifier": "https://github.com/the-url-from-repository", + "relation": "isSupplementedBy", + "scheme": "url", + }, + { + "identifier": "https://github.com/the-url-from-repository-artifact", + "relation": "isSupplementedBy", + "scheme": "url", + }, + {"identifier": "https://github.com/the-url-from-url", "relation": "isSupplementedBy", "scheme": "url"}, + ] def test_title(self): assert zenodo_object().add_title().title == "Test title" diff --git a/tests/lib/cff_1_2_0/urls/_RA__/test_apalike_object.py b/tests/lib/cff_1_2_0/urls/_RA__/test_apalike_object.py index 83132f232..961789d72 100644 --- a/tests/lib/cff_1_2_0/urls/_RA__/test_apalike_object.py +++ b/tests/lib/cff_1_2_0/urls/_RA__/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_author(self): assert apalike_object().add_author().author == "Test author" diff --git a/tests/lib/cff_1_2_0/urls/_RA__/test_bibtex_object.py b/tests/lib/cff_1_2_0/urls/_RA__/test_bibtex_object.py index d210e04f1..dc132626b 100644 --- a/tests/lib/cff_1_2_0/urls/_RA__/test_bibtex_object.py +++ b/tests/lib/cff_1_2_0/urls/_RA__/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_author(self): assert bibtex_object().add_author().author == "author = {{Test author}}" diff --git a/tests/lib/cff_1_2_0/urls/_RA__/test_codemeta_object.py b/tests/lib/cff_1_2_0/urls/_RA__/test_codemeta_object.py index a53dc6ff5..22d88ef96 100644 --- a/tests/lib/cff_1_2_0/urls/_RA__/test_codemeta_object.py +++ b/tests/lib/cff_1_2_0/urls/_RA__/test_codemeta_object.py @@ -18,16 +18,12 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_check_cffobj(self): codemeta_object().check_cffobj() # doesn't need an assert def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert codemeta_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert codemeta_object().add_urls().code_repository == "https://github.com/the-url-from-repository" diff --git a/tests/lib/cff_1_2_0/urls/_RA__/test_endnote_object.py b/tests/lib/cff_1_2_0/urls/_RA__/test_endnote_object.py index 67172b00b..4cf1870b2 100644 --- a/tests/lib/cff_1_2_0/urls/_RA__/test_endnote_object.py +++ b/tests/lib/cff_1_2_0/urls/_RA__/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_check_cffobj(self): endnote_object().check_cffobj() # doesn't need an assert diff --git a/tests/lib/cff_1_2_0/urls/_RA__/test_ris_object.py b/tests/lib/cff_1_2_0/urls/_RA__/test_ris_object.py index d60db7805..9a4701fc4 100644 --- a/tests/lib/cff_1_2_0/urls/_RA__/test_ris_object.py +++ b/tests/lib/cff_1_2_0/urls/_RA__/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_2_0/urls/_RA__/test_schemaorg_object.py b/tests/lib/cff_1_2_0/urls/_RA__/test_schemaorg_object.py index f31ac82ef..764d100c9 100644 --- a/tests/lib/cff_1_2_0/urls/_RA__/test_schemaorg_object.py +++ b/tests/lib/cff_1_2_0/urls/_RA__/test_schemaorg_object.py @@ -18,16 +18,12 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_check_cffobj(self): schemaorg_object().check_cffobj() # doesn't need an assert def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert schemaorg_object().add_urls().code_repository == "https://github.com/the-url-from-repository" diff --git a/tests/lib/cff_1_2_0/urls/_RA__/test_zenodo_object.py b/tests/lib/cff_1_2_0/urls/_RA__/test_zenodo_object.py index 771cf7bfb..7ba5db64b 100644 --- a/tests/lib/cff_1_2_0/urls/_RA__/test_zenodo_object.py +++ b/tests/lib/cff_1_2_0/urls/_RA__/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,9 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [{ - "name": "Test author" - }] + assert zenodo_object().add_creators().creators == [{"name": "Test author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None @@ -48,15 +45,18 @@ def test_publication_date(self): assert zenodo_object().add_publication_date().publication_date is None def test_related_identifiers(self): - assert zenodo_object().add_related_identifiers().related_identifiers == [{ - "identifier": "https://github.com/the-url-from-repository", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-repository-artifact", - "relation": "isSupplementedBy", - "scheme": "url" - }] + assert zenodo_object().add_related_identifiers().related_identifiers == [ + { + "identifier": "https://github.com/the-url-from-repository", + "relation": "isSupplementedBy", + "scheme": "url", + }, + { + "identifier": "https://github.com/the-url-from-repository-artifact", + "relation": "isSupplementedBy", + "scheme": "url", + }, + ] def test_title(self): assert zenodo_object().add_title().title == "Test title" diff --git a/tests/lib/cff_1_2_0/urls/_R_CU/test_apalike_object.py b/tests/lib/cff_1_2_0/urls/_R_CU/test_apalike_object.py index 90f7529b7..d7d59a418 100644 --- a/tests/lib/cff_1_2_0/urls/_R_CU/test_apalike_object.py +++ b/tests/lib/cff_1_2_0/urls/_R_CU/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_author(self): assert apalike_object().add_author().author == "Test author" diff --git a/tests/lib/cff_1_2_0/urls/_R_CU/test_bibtex_object.py b/tests/lib/cff_1_2_0/urls/_R_CU/test_bibtex_object.py index e8f356531..b5671783d 100644 --- a/tests/lib/cff_1_2_0/urls/_R_CU/test_bibtex_object.py +++ b/tests/lib/cff_1_2_0/urls/_R_CU/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_author(self): assert bibtex_object().add_author().author == "author = {{Test author}}" diff --git a/tests/lib/cff_1_2_0/urls/_R_CU/test_codemeta_object.py b/tests/lib/cff_1_2_0/urls/_R_CU/test_codemeta_object.py index c41d178f8..27d1b32df 100644 --- a/tests/lib/cff_1_2_0/urls/_R_CU/test_codemeta_object.py +++ b/tests/lib/cff_1_2_0/urls/_R_CU/test_codemeta_object.py @@ -18,16 +18,12 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_check_cffobj(self): codemeta_object().check_cffobj() # doesn't need an assert def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert codemeta_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert codemeta_object().add_urls().code_repository == "https://github.com/the-url-from-repository-code" diff --git a/tests/lib/cff_1_2_0/urls/_R_CU/test_endnote_object.py b/tests/lib/cff_1_2_0/urls/_R_CU/test_endnote_object.py index 562d35926..89d8d1d5f 100644 --- a/tests/lib/cff_1_2_0/urls/_R_CU/test_endnote_object.py +++ b/tests/lib/cff_1_2_0/urls/_R_CU/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_check_cffobj(self): endnote_object().check_cffobj() # doesn't need an assert diff --git a/tests/lib/cff_1_2_0/urls/_R_CU/test_ris_object.py b/tests/lib/cff_1_2_0/urls/_R_CU/test_ris_object.py index 4f099cf97..22f05bf4c 100644 --- a/tests/lib/cff_1_2_0/urls/_R_CU/test_ris_object.py +++ b/tests/lib/cff_1_2_0/urls/_R_CU/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_2_0/urls/_R_CU/test_schemaorg_object.py b/tests/lib/cff_1_2_0/urls/_R_CU/test_schemaorg_object.py index 7bcbb5ae5..78558e918 100644 --- a/tests/lib/cff_1_2_0/urls/_R_CU/test_schemaorg_object.py +++ b/tests/lib/cff_1_2_0/urls/_R_CU/test_schemaorg_object.py @@ -18,16 +18,12 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_check_cffobj(self): schemaorg_object().check_cffobj() # doesn't need an assert def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert schemaorg_object().add_urls().code_repository == "https://github.com/the-url-from-repository-code" diff --git a/tests/lib/cff_1_2_0/urls/_R_CU/test_zenodo_object.py b/tests/lib/cff_1_2_0/urls/_R_CU/test_zenodo_object.py index 168d9810b..a90246afd 100644 --- a/tests/lib/cff_1_2_0/urls/_R_CU/test_zenodo_object.py +++ b/tests/lib/cff_1_2_0/urls/_R_CU/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,9 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [{ - "name": "Test author" - }] + assert zenodo_object().add_creators().creators == [{"name": "Test author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None @@ -48,19 +45,19 @@ def test_publication_date(self): assert zenodo_object().add_publication_date().publication_date is None def test_related_identifiers(self): - assert zenodo_object().add_related_identifiers().related_identifiers == [{ - "identifier": "https://github.com/the-url-from-repository", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-repository-code", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-url", - "relation": "isSupplementedBy", - "scheme": "url" - }] + assert zenodo_object().add_related_identifiers().related_identifiers == [ + { + "identifier": "https://github.com/the-url-from-repository", + "relation": "isSupplementedBy", + "scheme": "url", + }, + { + "identifier": "https://github.com/the-url-from-repository-code", + "relation": "isSupplementedBy", + "scheme": "url", + }, + {"identifier": "https://github.com/the-url-from-url", "relation": "isSupplementedBy", "scheme": "url"}, + ] def test_title(self): assert zenodo_object().add_title().title == "Test title" diff --git a/tests/lib/cff_1_2_0/urls/_R_C_/test_apalike_object.py b/tests/lib/cff_1_2_0/urls/_R_C_/test_apalike_object.py index d6ed763a2..6e898516d 100644 --- a/tests/lib/cff_1_2_0/urls/_R_C_/test_apalike_object.py +++ b/tests/lib/cff_1_2_0/urls/_R_C_/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_author(self): assert apalike_object().add_author().author == "Test author" diff --git a/tests/lib/cff_1_2_0/urls/_R_C_/test_bibtex_object.py b/tests/lib/cff_1_2_0/urls/_R_C_/test_bibtex_object.py index fbcfb7bfe..ba9acc7f6 100644 --- a/tests/lib/cff_1_2_0/urls/_R_C_/test_bibtex_object.py +++ b/tests/lib/cff_1_2_0/urls/_R_C_/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_author(self): assert bibtex_object().add_author().author == "author = {{Test author}}" diff --git a/tests/lib/cff_1_2_0/urls/_R_C_/test_codemeta_object.py b/tests/lib/cff_1_2_0/urls/_R_C_/test_codemeta_object.py index 788d0ee02..1a1b879fd 100644 --- a/tests/lib/cff_1_2_0/urls/_R_C_/test_codemeta_object.py +++ b/tests/lib/cff_1_2_0/urls/_R_C_/test_codemeta_object.py @@ -18,16 +18,12 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_check_cffobj(self): codemeta_object().check_cffobj() # doesn't need an assert def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert codemeta_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert codemeta_object().add_urls().code_repository == "https://github.com/the-url-from-repository-code" diff --git a/tests/lib/cff_1_2_0/urls/_R_C_/test_endnote_object.py b/tests/lib/cff_1_2_0/urls/_R_C_/test_endnote_object.py index 2c7290531..7887eb656 100644 --- a/tests/lib/cff_1_2_0/urls/_R_C_/test_endnote_object.py +++ b/tests/lib/cff_1_2_0/urls/_R_C_/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_check_cffobj(self): endnote_object().check_cffobj() # doesn't need an assert diff --git a/tests/lib/cff_1_2_0/urls/_R_C_/test_ris_object.py b/tests/lib/cff_1_2_0/urls/_R_C_/test_ris_object.py index 972aab364..042df192a 100644 --- a/tests/lib/cff_1_2_0/urls/_R_C_/test_ris_object.py +++ b/tests/lib/cff_1_2_0/urls/_R_C_/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_2_0/urls/_R_C_/test_schemaorg_object.py b/tests/lib/cff_1_2_0/urls/_R_C_/test_schemaorg_object.py index dd8761f29..4a3ebb910 100644 --- a/tests/lib/cff_1_2_0/urls/_R_C_/test_schemaorg_object.py +++ b/tests/lib/cff_1_2_0/urls/_R_C_/test_schemaorg_object.py @@ -18,16 +18,12 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_check_cffobj(self): schemaorg_object().check_cffobj() # doesn't need an assert def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert schemaorg_object().add_urls().code_repository == "https://github.com/the-url-from-repository-code" diff --git a/tests/lib/cff_1_2_0/urls/_R_C_/test_zenodo_object.py b/tests/lib/cff_1_2_0/urls/_R_C_/test_zenodo_object.py index 34bd357b1..2461d6736 100644 --- a/tests/lib/cff_1_2_0/urls/_R_C_/test_zenodo_object.py +++ b/tests/lib/cff_1_2_0/urls/_R_C_/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,9 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [{ - "name": "Test author" - }] + assert zenodo_object().add_creators().creators == [{"name": "Test author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None @@ -48,15 +45,18 @@ def test_publication_date(self): assert zenodo_object().add_publication_date().publication_date is None def test_related_identifiers(self): - assert zenodo_object().add_related_identifiers().related_identifiers == [{ - "identifier": "https://github.com/the-url-from-repository", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-repository-code", - "relation": "isSupplementedBy", - "scheme": "url" - }] + assert zenodo_object().add_related_identifiers().related_identifiers == [ + { + "identifier": "https://github.com/the-url-from-repository", + "relation": "isSupplementedBy", + "scheme": "url", + }, + { + "identifier": "https://github.com/the-url-from-repository-code", + "relation": "isSupplementedBy", + "scheme": "url", + }, + ] def test_title(self): assert zenodo_object().add_title().title == "Test title" diff --git a/tests/lib/cff_1_2_0/urls/_R__U/test_apalike_object.py b/tests/lib/cff_1_2_0/urls/_R__U/test_apalike_object.py index 90f7529b7..d7d59a418 100644 --- a/tests/lib/cff_1_2_0/urls/_R__U/test_apalike_object.py +++ b/tests/lib/cff_1_2_0/urls/_R__U/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_author(self): assert apalike_object().add_author().author == "Test author" diff --git a/tests/lib/cff_1_2_0/urls/_R__U/test_bibtex_object.py b/tests/lib/cff_1_2_0/urls/_R__U/test_bibtex_object.py index e8f356531..b5671783d 100644 --- a/tests/lib/cff_1_2_0/urls/_R__U/test_bibtex_object.py +++ b/tests/lib/cff_1_2_0/urls/_R__U/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_author(self): assert bibtex_object().add_author().author == "author = {{Test author}}" diff --git a/tests/lib/cff_1_2_0/urls/_R__U/test_codemeta_object.py b/tests/lib/cff_1_2_0/urls/_R__U/test_codemeta_object.py index d05dcc0e3..881913b8d 100644 --- a/tests/lib/cff_1_2_0/urls/_R__U/test_codemeta_object.py +++ b/tests/lib/cff_1_2_0/urls/_R__U/test_codemeta_object.py @@ -18,16 +18,12 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_check_cffobj(self): codemeta_object().check_cffobj() # doesn't need an assert def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert codemeta_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert codemeta_object().add_urls().code_repository == "https://github.com/the-url-from-repository" diff --git a/tests/lib/cff_1_2_0/urls/_R__U/test_endnote_object.py b/tests/lib/cff_1_2_0/urls/_R__U/test_endnote_object.py index 562d35926..89d8d1d5f 100644 --- a/tests/lib/cff_1_2_0/urls/_R__U/test_endnote_object.py +++ b/tests/lib/cff_1_2_0/urls/_R__U/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_check_cffobj(self): endnote_object().check_cffobj() # doesn't need an assert diff --git a/tests/lib/cff_1_2_0/urls/_R__U/test_ris_object.py b/tests/lib/cff_1_2_0/urls/_R__U/test_ris_object.py index 4f099cf97..22f05bf4c 100644 --- a/tests/lib/cff_1_2_0/urls/_R__U/test_ris_object.py +++ b/tests/lib/cff_1_2_0/urls/_R__U/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_2_0/urls/_R__U/test_schemaorg_object.py b/tests/lib/cff_1_2_0/urls/_R__U/test_schemaorg_object.py index e26db9907..b0a96c2b1 100644 --- a/tests/lib/cff_1_2_0/urls/_R__U/test_schemaorg_object.py +++ b/tests/lib/cff_1_2_0/urls/_R__U/test_schemaorg_object.py @@ -18,16 +18,12 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_check_cffobj(self): schemaorg_object().check_cffobj() # doesn't need an assert def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert schemaorg_object().add_urls().code_repository == "https://github.com/the-url-from-repository" diff --git a/tests/lib/cff_1_2_0/urls/_R__U/test_zenodo_object.py b/tests/lib/cff_1_2_0/urls/_R__U/test_zenodo_object.py index 2d1bd1173..ea31e5cab 100644 --- a/tests/lib/cff_1_2_0/urls/_R__U/test_zenodo_object.py +++ b/tests/lib/cff_1_2_0/urls/_R__U/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,9 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [{ - "name": "Test author" - }] + assert zenodo_object().add_creators().creators == [{"name": "Test author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None @@ -48,15 +45,14 @@ def test_publication_date(self): assert zenodo_object().add_publication_date().publication_date is None def test_related_identifiers(self): - assert zenodo_object().add_related_identifiers().related_identifiers == [{ - "identifier": "https://github.com/the-url-from-repository", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-url", - "relation": "isSupplementedBy", - "scheme": "url" - }] + assert zenodo_object().add_related_identifiers().related_identifiers == [ + { + "identifier": "https://github.com/the-url-from-repository", + "relation": "isSupplementedBy", + "scheme": "url", + }, + {"identifier": "https://github.com/the-url-from-url", "relation": "isSupplementedBy", "scheme": "url"}, + ] def test_title(self): assert zenodo_object().add_title().title == "Test title" diff --git a/tests/lib/cff_1_2_0/urls/_R___/test_apalike_object.py b/tests/lib/cff_1_2_0/urls/_R___/test_apalike_object.py index 83132f232..961789d72 100644 --- a/tests/lib/cff_1_2_0/urls/_R___/test_apalike_object.py +++ b/tests/lib/cff_1_2_0/urls/_R___/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_author(self): assert apalike_object().add_author().author == "Test author" diff --git a/tests/lib/cff_1_2_0/urls/_R___/test_bibtex_object.py b/tests/lib/cff_1_2_0/urls/_R___/test_bibtex_object.py index d210e04f1..dc132626b 100644 --- a/tests/lib/cff_1_2_0/urls/_R___/test_bibtex_object.py +++ b/tests/lib/cff_1_2_0/urls/_R___/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_author(self): assert bibtex_object().add_author().author == "author = {{Test author}}" diff --git a/tests/lib/cff_1_2_0/urls/_R___/test_codemeta_object.py b/tests/lib/cff_1_2_0/urls/_R___/test_codemeta_object.py index edbc6df01..18122720c 100644 --- a/tests/lib/cff_1_2_0/urls/_R___/test_codemeta_object.py +++ b/tests/lib/cff_1_2_0/urls/_R___/test_codemeta_object.py @@ -18,16 +18,12 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_check_cffobj(self): codemeta_object().check_cffobj() # doesn't need an assert def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert codemeta_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert codemeta_object().add_urls().code_repository == "https://github.com/the-url-from-repository" diff --git a/tests/lib/cff_1_2_0/urls/_R___/test_endnote_object.py b/tests/lib/cff_1_2_0/urls/_R___/test_endnote_object.py index 67172b00b..4cf1870b2 100644 --- a/tests/lib/cff_1_2_0/urls/_R___/test_endnote_object.py +++ b/tests/lib/cff_1_2_0/urls/_R___/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_check_cffobj(self): endnote_object().check_cffobj() # doesn't need an assert diff --git a/tests/lib/cff_1_2_0/urls/_R___/test_ris_object.py b/tests/lib/cff_1_2_0/urls/_R___/test_ris_object.py index d60db7805..9a4701fc4 100644 --- a/tests/lib/cff_1_2_0/urls/_R___/test_ris_object.py +++ b/tests/lib/cff_1_2_0/urls/_R___/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_2_0/urls/_R___/test_schemaorg_object.py b/tests/lib/cff_1_2_0/urls/_R___/test_schemaorg_object.py index ea70392f4..30570baa1 100644 --- a/tests/lib/cff_1_2_0/urls/_R___/test_schemaorg_object.py +++ b/tests/lib/cff_1_2_0/urls/_R___/test_schemaorg_object.py @@ -18,16 +18,12 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_check_cffobj(self): schemaorg_object().check_cffobj() # doesn't need an assert def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert schemaorg_object().add_urls().code_repository == "https://github.com/the-url-from-repository" diff --git a/tests/lib/cff_1_2_0/urls/_R___/test_zenodo_object.py b/tests/lib/cff_1_2_0/urls/_R___/test_zenodo_object.py index 89559b576..74bc6da4e 100644 --- a/tests/lib/cff_1_2_0/urls/_R___/test_zenodo_object.py +++ b/tests/lib/cff_1_2_0/urls/_R___/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,9 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [{ - "name": "Test author" - }] + assert zenodo_object().add_creators().creators == [{"name": "Test author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None @@ -48,11 +45,13 @@ def test_publication_date(self): assert zenodo_object().add_publication_date().publication_date is None def test_related_identifiers(self): - assert zenodo_object().add_related_identifiers().related_identifiers == [{ - "identifier": "https://github.com/the-url-from-repository", - "relation": "isSupplementedBy", - "scheme": "url" - }] + assert zenodo_object().add_related_identifiers().related_identifiers == [ + { + "identifier": "https://github.com/the-url-from-repository", + "relation": "isSupplementedBy", + "scheme": "url", + } + ] def test_title(self): assert zenodo_object().add_title().title == "Test title" diff --git a/tests/lib/cff_1_2_0/urls/__ACU/test_apalike_object.py b/tests/lib/cff_1_2_0/urls/__ACU/test_apalike_object.py index 90f7529b7..d7d59a418 100644 --- a/tests/lib/cff_1_2_0/urls/__ACU/test_apalike_object.py +++ b/tests/lib/cff_1_2_0/urls/__ACU/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_author(self): assert apalike_object().add_author().author == "Test author" diff --git a/tests/lib/cff_1_2_0/urls/__ACU/test_bibtex_object.py b/tests/lib/cff_1_2_0/urls/__ACU/test_bibtex_object.py index e8f356531..b5671783d 100644 --- a/tests/lib/cff_1_2_0/urls/__ACU/test_bibtex_object.py +++ b/tests/lib/cff_1_2_0/urls/__ACU/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_author(self): assert bibtex_object().add_author().author == "author = {{Test author}}" diff --git a/tests/lib/cff_1_2_0/urls/__ACU/test_codemeta_object.py b/tests/lib/cff_1_2_0/urls/__ACU/test_codemeta_object.py index c41d178f8..27d1b32df 100644 --- a/tests/lib/cff_1_2_0/urls/__ACU/test_codemeta_object.py +++ b/tests/lib/cff_1_2_0/urls/__ACU/test_codemeta_object.py @@ -18,16 +18,12 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_check_cffobj(self): codemeta_object().check_cffobj() # doesn't need an assert def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert codemeta_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert codemeta_object().add_urls().code_repository == "https://github.com/the-url-from-repository-code" diff --git a/tests/lib/cff_1_2_0/urls/__ACU/test_endnote_object.py b/tests/lib/cff_1_2_0/urls/__ACU/test_endnote_object.py index 562d35926..89d8d1d5f 100644 --- a/tests/lib/cff_1_2_0/urls/__ACU/test_endnote_object.py +++ b/tests/lib/cff_1_2_0/urls/__ACU/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_check_cffobj(self): endnote_object().check_cffobj() # doesn't need an assert diff --git a/tests/lib/cff_1_2_0/urls/__ACU/test_ris_object.py b/tests/lib/cff_1_2_0/urls/__ACU/test_ris_object.py index 4f099cf97..22f05bf4c 100644 --- a/tests/lib/cff_1_2_0/urls/__ACU/test_ris_object.py +++ b/tests/lib/cff_1_2_0/urls/__ACU/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_2_0/urls/__ACU/test_schemaorg_object.py b/tests/lib/cff_1_2_0/urls/__ACU/test_schemaorg_object.py index 7bcbb5ae5..78558e918 100644 --- a/tests/lib/cff_1_2_0/urls/__ACU/test_schemaorg_object.py +++ b/tests/lib/cff_1_2_0/urls/__ACU/test_schemaorg_object.py @@ -18,16 +18,12 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_check_cffobj(self): schemaorg_object().check_cffobj() # doesn't need an assert def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert schemaorg_object().add_urls().code_repository == "https://github.com/the-url-from-repository-code" diff --git a/tests/lib/cff_1_2_0/urls/__ACU/test_zenodo_object.py b/tests/lib/cff_1_2_0/urls/__ACU/test_zenodo_object.py index b7b526b47..857d44ee2 100644 --- a/tests/lib/cff_1_2_0/urls/__ACU/test_zenodo_object.py +++ b/tests/lib/cff_1_2_0/urls/__ACU/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,9 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [{ - "name": "Test author" - }] + assert zenodo_object().add_creators().creators == [{"name": "Test author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None @@ -48,19 +45,19 @@ def test_publication_date(self): assert zenodo_object().add_publication_date().publication_date is None def test_related_identifiers(self): - assert zenodo_object().add_related_identifiers().related_identifiers == [{ - "identifier": "https://github.com/the-url-from-repository-artifact", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-repository-code", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-url", - "relation": "isSupplementedBy", - "scheme": "url" - }] + assert zenodo_object().add_related_identifiers().related_identifiers == [ + { + "identifier": "https://github.com/the-url-from-repository-artifact", + "relation": "isSupplementedBy", + "scheme": "url", + }, + { + "identifier": "https://github.com/the-url-from-repository-code", + "relation": "isSupplementedBy", + "scheme": "url", + }, + {"identifier": "https://github.com/the-url-from-url", "relation": "isSupplementedBy", "scheme": "url"}, + ] def test_title(self): assert zenodo_object().add_title().title == "Test title" diff --git a/tests/lib/cff_1_2_0/urls/__AC_/test_apalike_object.py b/tests/lib/cff_1_2_0/urls/__AC_/test_apalike_object.py index d6ed763a2..6e898516d 100644 --- a/tests/lib/cff_1_2_0/urls/__AC_/test_apalike_object.py +++ b/tests/lib/cff_1_2_0/urls/__AC_/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_author(self): assert apalike_object().add_author().author == "Test author" diff --git a/tests/lib/cff_1_2_0/urls/__AC_/test_bibtex_object.py b/tests/lib/cff_1_2_0/urls/__AC_/test_bibtex_object.py index fbcfb7bfe..ba9acc7f6 100644 --- a/tests/lib/cff_1_2_0/urls/__AC_/test_bibtex_object.py +++ b/tests/lib/cff_1_2_0/urls/__AC_/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_author(self): assert bibtex_object().add_author().author == "author = {{Test author}}" diff --git a/tests/lib/cff_1_2_0/urls/__AC_/test_codemeta_object.py b/tests/lib/cff_1_2_0/urls/__AC_/test_codemeta_object.py index 0c5d7ee02..506091a15 100644 --- a/tests/lib/cff_1_2_0/urls/__AC_/test_codemeta_object.py +++ b/tests/lib/cff_1_2_0/urls/__AC_/test_codemeta_object.py @@ -18,16 +18,12 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_check_cffobj(self): codemeta_object().check_cffobj() # doesn't need an assert def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert codemeta_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert codemeta_object().add_urls().code_repository == "https://github.com/the-url-from-repository-code" diff --git a/tests/lib/cff_1_2_0/urls/__AC_/test_endnote_object.py b/tests/lib/cff_1_2_0/urls/__AC_/test_endnote_object.py index 2c7290531..7887eb656 100644 --- a/tests/lib/cff_1_2_0/urls/__AC_/test_endnote_object.py +++ b/tests/lib/cff_1_2_0/urls/__AC_/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_check_cffobj(self): endnote_object().check_cffobj() # doesn't need an assert diff --git a/tests/lib/cff_1_2_0/urls/__AC_/test_ris_object.py b/tests/lib/cff_1_2_0/urls/__AC_/test_ris_object.py index 972aab364..042df192a 100644 --- a/tests/lib/cff_1_2_0/urls/__AC_/test_ris_object.py +++ b/tests/lib/cff_1_2_0/urls/__AC_/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_2_0/urls/__AC_/test_schemaorg_object.py b/tests/lib/cff_1_2_0/urls/__AC_/test_schemaorg_object.py index 9f5487cc1..dcf64f047 100644 --- a/tests/lib/cff_1_2_0/urls/__AC_/test_schemaorg_object.py +++ b/tests/lib/cff_1_2_0/urls/__AC_/test_schemaorg_object.py @@ -18,16 +18,12 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_check_cffobj(self): schemaorg_object().check_cffobj() # doesn't need an assert def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert schemaorg_object().add_urls().code_repository == "https://github.com/the-url-from-repository-code" diff --git a/tests/lib/cff_1_2_0/urls/__AC_/test_zenodo_object.py b/tests/lib/cff_1_2_0/urls/__AC_/test_zenodo_object.py index 3831ce293..6b6483f74 100644 --- a/tests/lib/cff_1_2_0/urls/__AC_/test_zenodo_object.py +++ b/tests/lib/cff_1_2_0/urls/__AC_/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,9 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [{ - "name": "Test author" - }] + assert zenodo_object().add_creators().creators == [{"name": "Test author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None @@ -48,15 +45,18 @@ def test_publication_date(self): assert zenodo_object().add_publication_date().publication_date is None def test_related_identifiers(self): - assert zenodo_object().add_related_identifiers().related_identifiers == [{ - "identifier": "https://github.com/the-url-from-repository-artifact", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-repository-code", - "relation": "isSupplementedBy", - "scheme": "url" - }] + assert zenodo_object().add_related_identifiers().related_identifiers == [ + { + "identifier": "https://github.com/the-url-from-repository-artifact", + "relation": "isSupplementedBy", + "scheme": "url", + }, + { + "identifier": "https://github.com/the-url-from-repository-code", + "relation": "isSupplementedBy", + "scheme": "url", + }, + ] def test_title(self): assert zenodo_object().add_title().title == "Test title" diff --git a/tests/lib/cff_1_2_0/urls/__A_U/test_apalike_object.py b/tests/lib/cff_1_2_0/urls/__A_U/test_apalike_object.py index 90f7529b7..d7d59a418 100644 --- a/tests/lib/cff_1_2_0/urls/__A_U/test_apalike_object.py +++ b/tests/lib/cff_1_2_0/urls/__A_U/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_author(self): assert apalike_object().add_author().author == "Test author" diff --git a/tests/lib/cff_1_2_0/urls/__A_U/test_bibtex_object.py b/tests/lib/cff_1_2_0/urls/__A_U/test_bibtex_object.py index e8f356531..b5671783d 100644 --- a/tests/lib/cff_1_2_0/urls/__A_U/test_bibtex_object.py +++ b/tests/lib/cff_1_2_0/urls/__A_U/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_author(self): assert bibtex_object().add_author().author == "author = {{Test author}}" diff --git a/tests/lib/cff_1_2_0/urls/__A_U/test_codemeta_object.py b/tests/lib/cff_1_2_0/urls/__A_U/test_codemeta_object.py index 83a70f9eb..f206be6d2 100644 --- a/tests/lib/cff_1_2_0/urls/__A_U/test_codemeta_object.py +++ b/tests/lib/cff_1_2_0/urls/__A_U/test_codemeta_object.py @@ -18,16 +18,12 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_check_cffobj(self): codemeta_object().check_cffobj() # doesn't need an assert def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert codemeta_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert codemeta_object().add_urls().code_repository is None diff --git a/tests/lib/cff_1_2_0/urls/__A_U/test_endnote_object.py b/tests/lib/cff_1_2_0/urls/__A_U/test_endnote_object.py index 562d35926..89d8d1d5f 100644 --- a/tests/lib/cff_1_2_0/urls/__A_U/test_endnote_object.py +++ b/tests/lib/cff_1_2_0/urls/__A_U/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_check_cffobj(self): endnote_object().check_cffobj() # doesn't need an assert diff --git a/tests/lib/cff_1_2_0/urls/__A_U/test_ris_object.py b/tests/lib/cff_1_2_0/urls/__A_U/test_ris_object.py index 4f099cf97..22f05bf4c 100644 --- a/tests/lib/cff_1_2_0/urls/__A_U/test_ris_object.py +++ b/tests/lib/cff_1_2_0/urls/__A_U/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_2_0/urls/__A_U/test_schemaorg_object.py b/tests/lib/cff_1_2_0/urls/__A_U/test_schemaorg_object.py index 2b59e6f43..eaf891482 100644 --- a/tests/lib/cff_1_2_0/urls/__A_U/test_schemaorg_object.py +++ b/tests/lib/cff_1_2_0/urls/__A_U/test_schemaorg_object.py @@ -18,16 +18,12 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_check_cffobj(self): schemaorg_object().check_cffobj() # doesn't need an assert def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert schemaorg_object().add_urls().code_repository is None diff --git a/tests/lib/cff_1_2_0/urls/__A_U/test_zenodo_object.py b/tests/lib/cff_1_2_0/urls/__A_U/test_zenodo_object.py index 5fe57029b..7211c8e2e 100644 --- a/tests/lib/cff_1_2_0/urls/__A_U/test_zenodo_object.py +++ b/tests/lib/cff_1_2_0/urls/__A_U/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,9 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [{ - "name": "Test author" - }] + assert zenodo_object().add_creators().creators == [{"name": "Test author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None @@ -48,15 +45,14 @@ def test_publication_date(self): assert zenodo_object().add_publication_date().publication_date is None def test_related_identifiers(self): - assert zenodo_object().add_related_identifiers().related_identifiers == [{ - "identifier": "https://github.com/the-url-from-repository-artifact", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-url", - "relation": "isSupplementedBy", - "scheme": "url" - }] + assert zenodo_object().add_related_identifiers().related_identifiers == [ + { + "identifier": "https://github.com/the-url-from-repository-artifact", + "relation": "isSupplementedBy", + "scheme": "url", + }, + {"identifier": "https://github.com/the-url-from-url", "relation": "isSupplementedBy", "scheme": "url"}, + ] def test_title(self): assert zenodo_object().add_title().title == "Test title" diff --git a/tests/lib/cff_1_2_0/urls/__A__/test_apalike_object.py b/tests/lib/cff_1_2_0/urls/__A__/test_apalike_object.py index 9b3f6fddf..885607abc 100644 --- a/tests/lib/cff_1_2_0/urls/__A__/test_apalike_object.py +++ b/tests/lib/cff_1_2_0/urls/__A__/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_author(self): assert apalike_object().add_author().author == "Test author" diff --git a/tests/lib/cff_1_2_0/urls/__A__/test_bibtex_object.py b/tests/lib/cff_1_2_0/urls/__A__/test_bibtex_object.py index e2b2a2d0c..cfbb8b89d 100644 --- a/tests/lib/cff_1_2_0/urls/__A__/test_bibtex_object.py +++ b/tests/lib/cff_1_2_0/urls/__A__/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_author(self): assert bibtex_object().add_author().author == "author = {{Test author}}" diff --git a/tests/lib/cff_1_2_0/urls/__A__/test_codemeta_object.py b/tests/lib/cff_1_2_0/urls/__A__/test_codemeta_object.py index f753561f9..782457b2b 100644 --- a/tests/lib/cff_1_2_0/urls/__A__/test_codemeta_object.py +++ b/tests/lib/cff_1_2_0/urls/__A__/test_codemeta_object.py @@ -18,16 +18,12 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_check_cffobj(self): codemeta_object().check_cffobj() # doesn't need an assert def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert codemeta_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert codemeta_object().add_urls().code_repository is None diff --git a/tests/lib/cff_1_2_0/urls/__A__/test_endnote_object.py b/tests/lib/cff_1_2_0/urls/__A__/test_endnote_object.py index 20ec5d3f7..2be3a6946 100644 --- a/tests/lib/cff_1_2_0/urls/__A__/test_endnote_object.py +++ b/tests/lib/cff_1_2_0/urls/__A__/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_check_cffobj(self): endnote_object().check_cffobj() # doesn't need an assert diff --git a/tests/lib/cff_1_2_0/urls/__A__/test_ris_object.py b/tests/lib/cff_1_2_0/urls/__A__/test_ris_object.py index 84ca6108a..465c380d1 100644 --- a/tests/lib/cff_1_2_0/urls/__A__/test_ris_object.py +++ b/tests/lib/cff_1_2_0/urls/__A__/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_2_0/urls/__A__/test_schemaorg_object.py b/tests/lib/cff_1_2_0/urls/__A__/test_schemaorg_object.py index 3f5bf7ff2..0b8854569 100644 --- a/tests/lib/cff_1_2_0/urls/__A__/test_schemaorg_object.py +++ b/tests/lib/cff_1_2_0/urls/__A__/test_schemaorg_object.py @@ -18,16 +18,12 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_check_cffobj(self): schemaorg_object().check_cffobj() # doesn't need an assert def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert schemaorg_object().add_urls().code_repository is None diff --git a/tests/lib/cff_1_2_0/urls/__A__/test_zenodo_object.py b/tests/lib/cff_1_2_0/urls/__A__/test_zenodo_object.py index bc6865bfe..a576ef862 100644 --- a/tests/lib/cff_1_2_0/urls/__A__/test_zenodo_object.py +++ b/tests/lib/cff_1_2_0/urls/__A__/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,9 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [{ - "name": "Test author" - }] + assert zenodo_object().add_creators().creators == [{"name": "Test author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None @@ -48,11 +45,13 @@ def test_publication_date(self): assert zenodo_object().add_publication_date().publication_date is None def test_related_identifiers(self): - assert zenodo_object().add_related_identifiers().related_identifiers == [{ - "identifier": "https://github.com/the-url-from-repository-artifact", - "relation": "isSupplementedBy", - "scheme": "url" - }] + assert zenodo_object().add_related_identifiers().related_identifiers == [ + { + "identifier": "https://github.com/the-url-from-repository-artifact", + "relation": "isSupplementedBy", + "scheme": "url", + } + ] def test_title(self): assert zenodo_object().add_title().title == "Test title" diff --git a/tests/lib/cff_1_2_0/urls/___CU/test_apalike_object.py b/tests/lib/cff_1_2_0/urls/___CU/test_apalike_object.py index 90f7529b7..d7d59a418 100644 --- a/tests/lib/cff_1_2_0/urls/___CU/test_apalike_object.py +++ b/tests/lib/cff_1_2_0/urls/___CU/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_author(self): assert apalike_object().add_author().author == "Test author" diff --git a/tests/lib/cff_1_2_0/urls/___CU/test_bibtex_object.py b/tests/lib/cff_1_2_0/urls/___CU/test_bibtex_object.py index e8f356531..b5671783d 100644 --- a/tests/lib/cff_1_2_0/urls/___CU/test_bibtex_object.py +++ b/tests/lib/cff_1_2_0/urls/___CU/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_author(self): assert bibtex_object().add_author().author == "author = {{Test author}}" diff --git a/tests/lib/cff_1_2_0/urls/___CU/test_codemeta_object.py b/tests/lib/cff_1_2_0/urls/___CU/test_codemeta_object.py index c41d178f8..27d1b32df 100644 --- a/tests/lib/cff_1_2_0/urls/___CU/test_codemeta_object.py +++ b/tests/lib/cff_1_2_0/urls/___CU/test_codemeta_object.py @@ -18,16 +18,12 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_check_cffobj(self): codemeta_object().check_cffobj() # doesn't need an assert def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert codemeta_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert codemeta_object().add_urls().code_repository == "https://github.com/the-url-from-repository-code" diff --git a/tests/lib/cff_1_2_0/urls/___CU/test_endnote_object.py b/tests/lib/cff_1_2_0/urls/___CU/test_endnote_object.py index 562d35926..89d8d1d5f 100644 --- a/tests/lib/cff_1_2_0/urls/___CU/test_endnote_object.py +++ b/tests/lib/cff_1_2_0/urls/___CU/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_check_cffobj(self): endnote_object().check_cffobj() # doesn't need an assert diff --git a/tests/lib/cff_1_2_0/urls/___CU/test_ris_object.py b/tests/lib/cff_1_2_0/urls/___CU/test_ris_object.py index 4f099cf97..22f05bf4c 100644 --- a/tests/lib/cff_1_2_0/urls/___CU/test_ris_object.py +++ b/tests/lib/cff_1_2_0/urls/___CU/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_2_0/urls/___CU/test_schemaorg_object.py b/tests/lib/cff_1_2_0/urls/___CU/test_schemaorg_object.py index 7bcbb5ae5..78558e918 100644 --- a/tests/lib/cff_1_2_0/urls/___CU/test_schemaorg_object.py +++ b/tests/lib/cff_1_2_0/urls/___CU/test_schemaorg_object.py @@ -18,16 +18,12 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_check_cffobj(self): schemaorg_object().check_cffobj() # doesn't need an assert def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert schemaorg_object().add_urls().code_repository == "https://github.com/the-url-from-repository-code" diff --git a/tests/lib/cff_1_2_0/urls/___CU/test_zenodo_object.py b/tests/lib/cff_1_2_0/urls/___CU/test_zenodo_object.py index 2c14b8a5d..2b09e0f05 100644 --- a/tests/lib/cff_1_2_0/urls/___CU/test_zenodo_object.py +++ b/tests/lib/cff_1_2_0/urls/___CU/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,9 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [{ - "name": "Test author" - }] + assert zenodo_object().add_creators().creators == [{"name": "Test author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None @@ -48,15 +45,14 @@ def test_publication_date(self): assert zenodo_object().add_publication_date().publication_date is None def test_related_identifiers(self): - assert zenodo_object().add_related_identifiers().related_identifiers == [{ - "identifier": "https://github.com/the-url-from-repository-code", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-url", - "relation": "isSupplementedBy", - "scheme": "url" - }] + assert zenodo_object().add_related_identifiers().related_identifiers == [ + { + "identifier": "https://github.com/the-url-from-repository-code", + "relation": "isSupplementedBy", + "scheme": "url", + }, + {"identifier": "https://github.com/the-url-from-url", "relation": "isSupplementedBy", "scheme": "url"}, + ] def test_title(self): assert zenodo_object().add_title().title == "Test title" diff --git a/tests/lib/cff_1_2_0/urls/___C_/test_apalike_object.py b/tests/lib/cff_1_2_0/urls/___C_/test_apalike_object.py index d6ed763a2..6e898516d 100644 --- a/tests/lib/cff_1_2_0/urls/___C_/test_apalike_object.py +++ b/tests/lib/cff_1_2_0/urls/___C_/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_author(self): assert apalike_object().add_author().author == "Test author" diff --git a/tests/lib/cff_1_2_0/urls/___C_/test_bibtex_object.py b/tests/lib/cff_1_2_0/urls/___C_/test_bibtex_object.py index fbcfb7bfe..ba9acc7f6 100644 --- a/tests/lib/cff_1_2_0/urls/___C_/test_bibtex_object.py +++ b/tests/lib/cff_1_2_0/urls/___C_/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_author(self): assert bibtex_object().add_author().author == "author = {{Test author}}" diff --git a/tests/lib/cff_1_2_0/urls/___C_/test_codemeta_object.py b/tests/lib/cff_1_2_0/urls/___C_/test_codemeta_object.py index e16e5bcd9..615585911 100644 --- a/tests/lib/cff_1_2_0/urls/___C_/test_codemeta_object.py +++ b/tests/lib/cff_1_2_0/urls/___C_/test_codemeta_object.py @@ -18,16 +18,12 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_check_cffobj(self): codemeta_object().check_cffobj() # doesn't need an assert def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert codemeta_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert codemeta_object().add_urls().code_repository == "https://github.com/the-url-from-repository-code" diff --git a/tests/lib/cff_1_2_0/urls/___C_/test_endnote_object.py b/tests/lib/cff_1_2_0/urls/___C_/test_endnote_object.py index 2c7290531..7887eb656 100644 --- a/tests/lib/cff_1_2_0/urls/___C_/test_endnote_object.py +++ b/tests/lib/cff_1_2_0/urls/___C_/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_check_cffobj(self): endnote_object().check_cffobj() # doesn't need an assert diff --git a/tests/lib/cff_1_2_0/urls/___C_/test_ris_object.py b/tests/lib/cff_1_2_0/urls/___C_/test_ris_object.py index 972aab364..042df192a 100644 --- a/tests/lib/cff_1_2_0/urls/___C_/test_ris_object.py +++ b/tests/lib/cff_1_2_0/urls/___C_/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_2_0/urls/___C_/test_schemaorg_object.py b/tests/lib/cff_1_2_0/urls/___C_/test_schemaorg_object.py index f82e6209b..556025a1d 100644 --- a/tests/lib/cff_1_2_0/urls/___C_/test_schemaorg_object.py +++ b/tests/lib/cff_1_2_0/urls/___C_/test_schemaorg_object.py @@ -18,16 +18,12 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_check_cffobj(self): schemaorg_object().check_cffobj() # doesn't need an assert def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert schemaorg_object().add_urls().code_repository == "https://github.com/the-url-from-repository-code" diff --git a/tests/lib/cff_1_2_0/urls/___C_/test_zenodo_object.py b/tests/lib/cff_1_2_0/urls/___C_/test_zenodo_object.py index 2e4713b23..b70cbd0d4 100644 --- a/tests/lib/cff_1_2_0/urls/___C_/test_zenodo_object.py +++ b/tests/lib/cff_1_2_0/urls/___C_/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,9 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [{ - "name": "Test author" - }] + assert zenodo_object().add_creators().creators == [{"name": "Test author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None @@ -48,11 +45,13 @@ def test_publication_date(self): assert zenodo_object().add_publication_date().publication_date is None def test_related_identifiers(self): - assert zenodo_object().add_related_identifiers().related_identifiers == [{ - "identifier": "https://github.com/the-url-from-repository-code", - "relation": "isSupplementedBy", - "scheme": "url" - }] + assert zenodo_object().add_related_identifiers().related_identifiers == [ + { + "identifier": "https://github.com/the-url-from-repository-code", + "relation": "isSupplementedBy", + "scheme": "url", + } + ] def test_title(self): assert zenodo_object().add_title().title == "Test title" diff --git a/tests/lib/cff_1_2_0/urls/____U/test_apalike_object.py b/tests/lib/cff_1_2_0/urls/____U/test_apalike_object.py index 90f7529b7..d7d59a418 100644 --- a/tests/lib/cff_1_2_0/urls/____U/test_apalike_object.py +++ b/tests/lib/cff_1_2_0/urls/____U/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_author(self): assert apalike_object().add_author().author == "Test author" diff --git a/tests/lib/cff_1_2_0/urls/____U/test_bibtex_object.py b/tests/lib/cff_1_2_0/urls/____U/test_bibtex_object.py index e8f356531..b5671783d 100644 --- a/tests/lib/cff_1_2_0/urls/____U/test_bibtex_object.py +++ b/tests/lib/cff_1_2_0/urls/____U/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_author(self): assert bibtex_object().add_author().author == "author = {{Test author}}" diff --git a/tests/lib/cff_1_2_0/urls/____U/test_codemeta_object.py b/tests/lib/cff_1_2_0/urls/____U/test_codemeta_object.py index 83a70f9eb..f206be6d2 100644 --- a/tests/lib/cff_1_2_0/urls/____U/test_codemeta_object.py +++ b/tests/lib/cff_1_2_0/urls/____U/test_codemeta_object.py @@ -18,16 +18,12 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_check_cffobj(self): codemeta_object().check_cffobj() # doesn't need an assert def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert codemeta_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert codemeta_object().add_urls().code_repository is None diff --git a/tests/lib/cff_1_2_0/urls/____U/test_endnote_object.py b/tests/lib/cff_1_2_0/urls/____U/test_endnote_object.py index 562d35926..89d8d1d5f 100644 --- a/tests/lib/cff_1_2_0/urls/____U/test_endnote_object.py +++ b/tests/lib/cff_1_2_0/urls/____U/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_check_cffobj(self): endnote_object().check_cffobj() # doesn't need an assert diff --git a/tests/lib/cff_1_2_0/urls/____U/test_ris_object.py b/tests/lib/cff_1_2_0/urls/____U/test_ris_object.py index 4f099cf97..22f05bf4c 100644 --- a/tests/lib/cff_1_2_0/urls/____U/test_ris_object.py +++ b/tests/lib/cff_1_2_0/urls/____U/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_2_0/urls/____U/test_schemaorg_object.py b/tests/lib/cff_1_2_0/urls/____U/test_schemaorg_object.py index 2b59e6f43..eaf891482 100644 --- a/tests/lib/cff_1_2_0/urls/____U/test_schemaorg_object.py +++ b/tests/lib/cff_1_2_0/urls/____U/test_schemaorg_object.py @@ -18,16 +18,12 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_check_cffobj(self): schemaorg_object().check_cffobj() # doesn't need an assert def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert schemaorg_object().add_urls().code_repository is None diff --git a/tests/lib/cff_1_2_0/urls/____U/test_zenodo_object.py b/tests/lib/cff_1_2_0/urls/____U/test_zenodo_object.py index ea1fde0fb..e4906d74a 100644 --- a/tests/lib/cff_1_2_0/urls/____U/test_zenodo_object.py +++ b/tests/lib/cff_1_2_0/urls/____U/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,9 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [{ - "name": "Test author" - }] + assert zenodo_object().add_creators().creators == [{"name": "Test author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None @@ -48,11 +45,9 @@ def test_publication_date(self): assert zenodo_object().add_publication_date().publication_date is None def test_related_identifiers(self): - assert zenodo_object().add_related_identifiers().related_identifiers == [{ - "identifier": "https://github.com/the-url-from-url", - "relation": "isSupplementedBy", - "scheme": "url" - }] + assert zenodo_object().add_related_identifiers().related_identifiers == [ + {"identifier": "https://github.com/the-url-from-url", "relation": "isSupplementedBy", "scheme": "url"} + ] def test_title(self): assert zenodo_object().add_title().title == "Test title" diff --git a/tests/lib/cff_1_2_0/urls/_____/test_apalike_object.py b/tests/lib/cff_1_2_0/urls/_____/test_apalike_object.py index 096a05e12..a2ee8fac0 100644 --- a/tests/lib/cff_1_2_0/urls/_____/test_apalike_object.py +++ b/tests/lib/cff_1_2_0/urls/_____/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_author(self): assert apalike_object().add_author().author == "Test author" diff --git a/tests/lib/cff_1_2_0/urls/_____/test_bibtex_object.py b/tests/lib/cff_1_2_0/urls/_____/test_bibtex_object.py index 3c91da404..33f3f8127 100644 --- a/tests/lib/cff_1_2_0/urls/_____/test_bibtex_object.py +++ b/tests/lib/cff_1_2_0/urls/_____/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_author(self): assert bibtex_object().add_author().author == "author = {{Test author}}" diff --git a/tests/lib/cff_1_2_0/urls/_____/test_codemeta_object.py b/tests/lib/cff_1_2_0/urls/_____/test_codemeta_object.py index b96d2d9d8..d16a42121 100644 --- a/tests/lib/cff_1_2_0/urls/_____/test_codemeta_object.py +++ b/tests/lib/cff_1_2_0/urls/_____/test_codemeta_object.py @@ -18,16 +18,12 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_check_cffobj(self): codemeta_object().check_cffobj() # doesn't need an assert def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert codemeta_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert codemeta_object().add_urls().code_repository is None diff --git a/tests/lib/cff_1_2_0/urls/_____/test_endnote_object.py b/tests/lib/cff_1_2_0/urls/_____/test_endnote_object.py index 70d4ad47c..3ad83ff6e 100644 --- a/tests/lib/cff_1_2_0/urls/_____/test_endnote_object.py +++ b/tests/lib/cff_1_2_0/urls/_____/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_check_cffobj(self): endnote_object().check_cffobj() # doesn't need an assert diff --git a/tests/lib/cff_1_2_0/urls/_____/test_ris_object.py b/tests/lib/cff_1_2_0/urls/_____/test_ris_object.py index 3a2ab11c5..b2b7473a9 100644 --- a/tests/lib/cff_1_2_0/urls/_____/test_ris_object.py +++ b/tests/lib/cff_1_2_0/urls/_____/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_2_0/urls/_____/test_schemaorg_object.py b/tests/lib/cff_1_2_0/urls/_____/test_schemaorg_object.py index fa72f2d14..3857e127e 100644 --- a/tests/lib/cff_1_2_0/urls/_____/test_schemaorg_object.py +++ b/tests/lib/cff_1_2_0/urls/_____/test_schemaorg_object.py @@ -18,16 +18,12 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_check_cffobj(self): schemaorg_object().check_cffobj() # doesn't need an assert def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert schemaorg_object().add_urls().code_repository is None diff --git a/tests/lib/cff_1_2_0/urls/_____/test_zenodo_object.py b/tests/lib/cff_1_2_0/urls/_____/test_zenodo_object.py index 816444c1b..318a07976 100644 --- a/tests/lib/cff_1_2_0/urls/_____/test_zenodo_object.py +++ b/tests/lib/cff_1_2_0/urls/_____/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,9 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [{ - "name": "Test author" - }] + assert zenodo_object().add_creators().creators == [{"name": "Test author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None diff --git a/tests/lib/cff_1_3_0/authors/one/GFA_AOE/test_apalike_object.py b/tests/lib/cff_1_3_0/authors/one/GFA_AOE/test_apalike_object.py index 718a1fde3..34c829250 100644 --- a/tests/lib/cff_1_3_0/authors/one/GFA_AOE/test_apalike_object.py +++ b/tests/lib/cff_1_3_0/authors/one/GFA_AOE/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_author(self): assert apalike_object().add_author().author == "von der Spaaks Jr. J.H." diff --git a/tests/lib/cff_1_3_0/authors/one/GFA_AOE/test_bibtex_object.py b/tests/lib/cff_1_3_0/authors/one/GFA_AOE/test_bibtex_object.py index 29d179e53..b6673418c 100644 --- a/tests/lib/cff_1_3_0/authors/one/GFA_AOE/test_bibtex_object.py +++ b/tests/lib/cff_1_3_0/authors/one/GFA_AOE/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_author(self): assert bibtex_object().add_author().author == "author = {von der Spaaks Jr., Jurriaan H.}" diff --git a/tests/lib/cff_1_3_0/authors/one/GFA_AOE/test_codemeta_object.py b/tests/lib/cff_1_3_0/authors/one/GFA_AOE/test_codemeta_object.py index e5778ce7e..e10747b45 100644 --- a/tests/lib/cff_1_3_0/authors/one/GFA_AOE/test_codemeta_object.py +++ b/tests/lib/cff_1_3_0/authors/one/GFA_AOE/test_codemeta_object.py @@ -18,24 +18,22 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_check_cffobj(self): codemeta_object().check_cffobj() # doesn't need an assert def test_author(self): - assert codemeta_object().add_author().author == [{ - "@id": "https://orcid.org/0000-0002-7064-4069", - "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": "Netherlands eScience Center" - }, - "alternateName": "jspaaks", - "email": "my@email.notexist", - "familyName": "von der Spaaks Jr.", - "givenName": "Jurriaan H." - }] + assert codemeta_object().add_author().author == [ + { + "@id": "https://orcid.org/0000-0002-7064-4069", + "@type": "Person", + "affiliation": {"@type": "Organization", "name": "Netherlands eScience Center"}, + "alternateName": "jspaaks", + "email": "my@email.notexist", + "familyName": "von der Spaaks Jr.", + "givenName": "Jurriaan H.", + } + ] def test_code_repository(self): assert codemeta_object().add_urls().code_repository is None diff --git a/tests/lib/cff_1_3_0/authors/one/GFA_AOE/test_endnote_object.py b/tests/lib/cff_1_3_0/authors/one/GFA_AOE/test_endnote_object.py index a44bc19e5..cc684491c 100644 --- a/tests/lib/cff_1_3_0/authors/one/GFA_AOE/test_endnote_object.py +++ b/tests/lib/cff_1_3_0/authors/one/GFA_AOE/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_check_cffobj(self): endnote_object().check_cffobj() # doesn't need an assert diff --git a/tests/lib/cff_1_3_0/authors/one/GFA_AOE/test_ris_object.py b/tests/lib/cff_1_3_0/authors/one/GFA_AOE/test_ris_object.py index e7ef16324..d98338f27 100644 --- a/tests/lib/cff_1_3_0/authors/one/GFA_AOE/test_ris_object.py +++ b/tests/lib/cff_1_3_0/authors/one/GFA_AOE/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_3_0/authors/one/GFA_AOE/test_schemaorg_object.py b/tests/lib/cff_1_3_0/authors/one/GFA_AOE/test_schemaorg_object.py index 116422dd4..17e1c997f 100644 --- a/tests/lib/cff_1_3_0/authors/one/GFA_AOE/test_schemaorg_object.py +++ b/tests/lib/cff_1_3_0/authors/one/GFA_AOE/test_schemaorg_object.py @@ -18,24 +18,22 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_check_cffobj(self): schemaorg_object().check_cffobj() # doesn't need an assert def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@id": "https://orcid.org/0000-0002-7064-4069", - "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": "Netherlands eScience Center" - }, - "alternateName": "jspaaks", - "email": "my@email.notexist", - "familyName": "von der Spaaks Jr.", - "givenName": "Jurriaan H." - }] + assert schemaorg_object().add_author().author == [ + { + "@id": "https://orcid.org/0000-0002-7064-4069", + "@type": "Person", + "affiliation": {"@type": "Organization", "name": "Netherlands eScience Center"}, + "alternateName": "jspaaks", + "email": "my@email.notexist", + "familyName": "von der Spaaks Jr.", + "givenName": "Jurriaan H.", + } + ] def test_code_repository(self): assert schemaorg_object().add_urls().code_repository is None diff --git a/tests/lib/cff_1_3_0/authors/one/GFA_AOE/test_zenodo_object.py b/tests/lib/cff_1_3_0/authors/one/GFA_AOE/test_zenodo_object.py index 36376efba..8903a8d7d 100644 --- a/tests/lib/cff_1_3_0/authors/one/GFA_AOE/test_zenodo_object.py +++ b/tests/lib/cff_1_3_0/authors/one/GFA_AOE/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -38,7 +37,7 @@ def test_creators(self): { "affiliation": "Netherlands eScience Center", "name": "von der Spaaks Jr., Jurriaan H.", - "orcid": "0000-0002-7064-4069" + "orcid": "0000-0002-7064-4069", } ] diff --git a/tests/lib/cff_1_3_0/authors/one/GFA_AO_/test_apalike_object.py b/tests/lib/cff_1_3_0/authors/one/GFA_AO_/test_apalike_object.py index 718a1fde3..34c829250 100644 --- a/tests/lib/cff_1_3_0/authors/one/GFA_AO_/test_apalike_object.py +++ b/tests/lib/cff_1_3_0/authors/one/GFA_AO_/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_author(self): assert apalike_object().add_author().author == "von der Spaaks Jr. J.H." diff --git a/tests/lib/cff_1_3_0/authors/one/GFA_AO_/test_bibtex_object.py b/tests/lib/cff_1_3_0/authors/one/GFA_AO_/test_bibtex_object.py index 29d179e53..b6673418c 100644 --- a/tests/lib/cff_1_3_0/authors/one/GFA_AO_/test_bibtex_object.py +++ b/tests/lib/cff_1_3_0/authors/one/GFA_AO_/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_author(self): assert bibtex_object().add_author().author == "author = {von der Spaaks Jr., Jurriaan H.}" diff --git a/tests/lib/cff_1_3_0/authors/one/GFA_AO_/test_codemeta_object.py b/tests/lib/cff_1_3_0/authors/one/GFA_AO_/test_codemeta_object.py index 2b74404d7..0628b2bda 100644 --- a/tests/lib/cff_1_3_0/authors/one/GFA_AO_/test_codemeta_object.py +++ b/tests/lib/cff_1_3_0/authors/one/GFA_AO_/test_codemeta_object.py @@ -18,23 +18,21 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_check_cffobj(self): codemeta_object().check_cffobj() # doesn't need an assert def test_author(self): - assert codemeta_object().add_author().author == [{ - "@id": "https://orcid.org/0000-0002-7064-4069", - "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": "Netherlands eScience Center" - }, - "alternateName": "jspaaks", - "familyName": "von der Spaaks Jr.", - "givenName": "Jurriaan H." - }] + assert codemeta_object().add_author().author == [ + { + "@id": "https://orcid.org/0000-0002-7064-4069", + "@type": "Person", + "affiliation": {"@type": "Organization", "name": "Netherlands eScience Center"}, + "alternateName": "jspaaks", + "familyName": "von der Spaaks Jr.", + "givenName": "Jurriaan H.", + } + ] def test_code_repository(self): assert codemeta_object().add_urls().code_repository is None diff --git a/tests/lib/cff_1_3_0/authors/one/GFA_AO_/test_endnote_object.py b/tests/lib/cff_1_3_0/authors/one/GFA_AO_/test_endnote_object.py index a44bc19e5..cc684491c 100644 --- a/tests/lib/cff_1_3_0/authors/one/GFA_AO_/test_endnote_object.py +++ b/tests/lib/cff_1_3_0/authors/one/GFA_AO_/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_check_cffobj(self): endnote_object().check_cffobj() # doesn't need an assert diff --git a/tests/lib/cff_1_3_0/authors/one/GFA_AO_/test_ris_object.py b/tests/lib/cff_1_3_0/authors/one/GFA_AO_/test_ris_object.py index e7ef16324..d98338f27 100644 --- a/tests/lib/cff_1_3_0/authors/one/GFA_AO_/test_ris_object.py +++ b/tests/lib/cff_1_3_0/authors/one/GFA_AO_/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_3_0/authors/one/GFA_AO_/test_schemaorg_object.py b/tests/lib/cff_1_3_0/authors/one/GFA_AO_/test_schemaorg_object.py index 3e2ac56b8..307fb7384 100644 --- a/tests/lib/cff_1_3_0/authors/one/GFA_AO_/test_schemaorg_object.py +++ b/tests/lib/cff_1_3_0/authors/one/GFA_AO_/test_schemaorg_object.py @@ -18,23 +18,21 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_check_cffobj(self): schemaorg_object().check_cffobj() # doesn't need an assert def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@id": "https://orcid.org/0000-0002-7064-4069", - "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": "Netherlands eScience Center" - }, - "alternateName": "jspaaks", - "familyName": "von der Spaaks Jr.", - "givenName": "Jurriaan H." - }] + assert schemaorg_object().add_author().author == [ + { + "@id": "https://orcid.org/0000-0002-7064-4069", + "@type": "Person", + "affiliation": {"@type": "Organization", "name": "Netherlands eScience Center"}, + "alternateName": "jspaaks", + "familyName": "von der Spaaks Jr.", + "givenName": "Jurriaan H.", + } + ] def test_code_repository(self): assert schemaorg_object().add_urls().code_repository is None diff --git a/tests/lib/cff_1_3_0/authors/one/GFA_AO_/test_zenodo_object.py b/tests/lib/cff_1_3_0/authors/one/GFA_AO_/test_zenodo_object.py index 36376efba..8903a8d7d 100644 --- a/tests/lib/cff_1_3_0/authors/one/GFA_AO_/test_zenodo_object.py +++ b/tests/lib/cff_1_3_0/authors/one/GFA_AO_/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -38,7 +37,7 @@ def test_creators(self): { "affiliation": "Netherlands eScience Center", "name": "von der Spaaks Jr., Jurriaan H.", - "orcid": "0000-0002-7064-4069" + "orcid": "0000-0002-7064-4069", } ] diff --git a/tests/lib/cff_1_3_0/authors/one/GFA____/test_apalike_object.py b/tests/lib/cff_1_3_0/authors/one/GFA____/test_apalike_object.py index f066be794..d50b2e92a 100644 --- a/tests/lib/cff_1_3_0/authors/one/GFA____/test_apalike_object.py +++ b/tests/lib/cff_1_3_0/authors/one/GFA____/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_as_string(self): actual_apalike = apalike_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "apalike.txt") diff --git a/tests/lib/cff_1_3_0/authors/one/GFA____/test_bibtex_object.py b/tests/lib/cff_1_3_0/authors/one/GFA____/test_bibtex_object.py index 4aa05cc36..6340f4534 100644 --- a/tests/lib/cff_1_3_0/authors/one/GFA____/test_bibtex_object.py +++ b/tests/lib/cff_1_3_0/authors/one/GFA____/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_as_string(self): actual_bibtex = bibtex_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "bibtex.bib") diff --git a/tests/lib/cff_1_3_0/authors/one/GFA____/test_codemeta_object.py b/tests/lib/cff_1_3_0/authors/one/GFA____/test_codemeta_object.py index 61d8b1cfd..60a64d0c2 100644 --- a/tests/lib/cff_1_3_0/authors/one/GFA____/test_codemeta_object.py +++ b/tests/lib/cff_1_3_0/authors/one/GFA____/test_codemeta_object.py @@ -18,7 +18,6 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_as_string(self): actual_codemeta = codemeta_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "codemeta.json") @@ -27,12 +26,9 @@ def test_as_string(self): assert actual_codemeta == expected_codemeta def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Person", - "alternateName": "Rafa", - "familyName": "van der Vaart III", - "givenName": "Rafael" - }] + assert codemeta_object().add_author().author == [ + {"@type": "Person", "alternateName": "Rafa", "familyName": "van der Vaart III", "givenName": "Rafael"} + ] def test_check_cffobj(self): codemeta_object().check_cffobj() diff --git a/tests/lib/cff_1_3_0/authors/one/GFA____/test_endnote_object.py b/tests/lib/cff_1_3_0/authors/one/GFA____/test_endnote_object.py index 742656970..88b2d8d65 100644 --- a/tests/lib/cff_1_3_0/authors/one/GFA____/test_endnote_object.py +++ b/tests/lib/cff_1_3_0/authors/one/GFA____/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_as_string(self): actual_endnote = endnote_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "endnote.enw") diff --git a/tests/lib/cff_1_3_0/authors/one/GFA____/test_ris_object.py b/tests/lib/cff_1_3_0/authors/one/GFA____/test_ris_object.py index ab07dbc5d..a50c99501 100644 --- a/tests/lib/cff_1_3_0/authors/one/GFA____/test_ris_object.py +++ b/tests/lib/cff_1_3_0/authors/one/GFA____/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_3_0/authors/one/GFA____/test_schemaorg_object.py b/tests/lib/cff_1_3_0/authors/one/GFA____/test_schemaorg_object.py index 1946f80b2..d4efa6ce1 100644 --- a/tests/lib/cff_1_3_0/authors/one/GFA____/test_schemaorg_object.py +++ b/tests/lib/cff_1_3_0/authors/one/GFA____/test_schemaorg_object.py @@ -18,7 +18,6 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_as_string(self): actual_schemaorg = schemaorg_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "schemaorg.json") @@ -27,12 +26,9 @@ def test_as_string(self): assert actual_schemaorg == expected_schemaorg def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Person", - "alternateName": "Rafa", - "familyName": "van der Vaart III", - "givenName": "Rafael" - }] + assert schemaorg_object().add_author().author == [ + {"@type": "Person", "alternateName": "Rafa", "familyName": "van der Vaart III", "givenName": "Rafael"} + ] def test_check_cffobj(self): schemaorg_object().check_cffobj() diff --git a/tests/lib/cff_1_3_0/authors/one/GFA____/test_zenodo_object.py b/tests/lib/cff_1_3_0/authors/one/GFA____/test_zenodo_object.py index e26d2153f..0827bfecc 100644 --- a/tests/lib/cff_1_3_0/authors/one/GFA____/test_zenodo_object.py +++ b/tests/lib/cff_1_3_0/authors/one/GFA____/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,11 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [ - { - "name": "van der Vaart III, Rafael" - } - ] + assert zenodo_object().add_creators().creators == [{"name": "van der Vaart III, Rafael"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None diff --git a/tests/lib/cff_1_3_0/authors/one/GF_____/test_apalike_object.py b/tests/lib/cff_1_3_0/authors/one/GF_____/test_apalike_object.py index f066be794..d50b2e92a 100644 --- a/tests/lib/cff_1_3_0/authors/one/GF_____/test_apalike_object.py +++ b/tests/lib/cff_1_3_0/authors/one/GF_____/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_as_string(self): actual_apalike = apalike_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "apalike.txt") diff --git a/tests/lib/cff_1_3_0/authors/one/GF_____/test_bibtex_object.py b/tests/lib/cff_1_3_0/authors/one/GF_____/test_bibtex_object.py index 4aa05cc36..6340f4534 100644 --- a/tests/lib/cff_1_3_0/authors/one/GF_____/test_bibtex_object.py +++ b/tests/lib/cff_1_3_0/authors/one/GF_____/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_as_string(self): actual_bibtex = bibtex_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "bibtex.bib") diff --git a/tests/lib/cff_1_3_0/authors/one/GF_____/test_codemeta_object.py b/tests/lib/cff_1_3_0/authors/one/GF_____/test_codemeta_object.py index febc508ee..5a1ebd478 100644 --- a/tests/lib/cff_1_3_0/authors/one/GF_____/test_codemeta_object.py +++ b/tests/lib/cff_1_3_0/authors/one/GF_____/test_codemeta_object.py @@ -18,7 +18,6 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_as_string(self): actual_codemeta = codemeta_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "codemeta.json") @@ -27,11 +26,9 @@ def test_as_string(self): assert actual_codemeta == expected_codemeta def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Person", - "familyName": "van der Vaart III", - "givenName": "Rafael" - }] + assert codemeta_object().add_author().author == [ + {"@type": "Person", "familyName": "van der Vaart III", "givenName": "Rafael"} + ] def test_check_cffobj(self): codemeta_object().check_cffobj() diff --git a/tests/lib/cff_1_3_0/authors/one/GF_____/test_endnote_object.py b/tests/lib/cff_1_3_0/authors/one/GF_____/test_endnote_object.py index 742656970..88b2d8d65 100644 --- a/tests/lib/cff_1_3_0/authors/one/GF_____/test_endnote_object.py +++ b/tests/lib/cff_1_3_0/authors/one/GF_____/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_as_string(self): actual_endnote = endnote_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "endnote.enw") diff --git a/tests/lib/cff_1_3_0/authors/one/GF_____/test_ris_object.py b/tests/lib/cff_1_3_0/authors/one/GF_____/test_ris_object.py index ab07dbc5d..a50c99501 100644 --- a/tests/lib/cff_1_3_0/authors/one/GF_____/test_ris_object.py +++ b/tests/lib/cff_1_3_0/authors/one/GF_____/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_3_0/authors/one/GF_____/test_schemaorg_object.py b/tests/lib/cff_1_3_0/authors/one/GF_____/test_schemaorg_object.py index 0a5e83b72..9f4c8823a 100644 --- a/tests/lib/cff_1_3_0/authors/one/GF_____/test_schemaorg_object.py +++ b/tests/lib/cff_1_3_0/authors/one/GF_____/test_schemaorg_object.py @@ -18,7 +18,6 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_as_string(self): actual_schemaorg = schemaorg_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "schemaorg.json") @@ -27,11 +26,9 @@ def test_as_string(self): assert actual_schemaorg == expected_schemaorg def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Person", - "familyName": "van der Vaart III", - "givenName": "Rafael" - }] + assert schemaorg_object().add_author().author == [ + {"@type": "Person", "familyName": "van der Vaart III", "givenName": "Rafael"} + ] def test_check_cffobj(self): schemaorg_object().check_cffobj() diff --git a/tests/lib/cff_1_3_0/authors/one/GF_____/test_zenodo_object.py b/tests/lib/cff_1_3_0/authors/one/GF_____/test_zenodo_object.py index e26d2153f..0827bfecc 100644 --- a/tests/lib/cff_1_3_0/authors/one/GF_____/test_zenodo_object.py +++ b/tests/lib/cff_1_3_0/authors/one/GF_____/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,11 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [ - { - "name": "van der Vaart III, Rafael" - } - ] + assert zenodo_object().add_creators().creators == [{"name": "van der Vaart III, Rafael"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None diff --git a/tests/lib/cff_1_3_0/authors/one/G_A____/test_apalike_object.py b/tests/lib/cff_1_3_0/authors/one/G_A____/test_apalike_object.py index 9224e7ee2..b14f673c7 100644 --- a/tests/lib/cff_1_3_0/authors/one/G_A____/test_apalike_object.py +++ b/tests/lib/cff_1_3_0/authors/one/G_A____/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_as_string(self): actual_apalike = apalike_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "apalike.txt") diff --git a/tests/lib/cff_1_3_0/authors/one/G_A____/test_bibtex_object.py b/tests/lib/cff_1_3_0/authors/one/G_A____/test_bibtex_object.py index 1ba1c83f2..959fbbe95 100644 --- a/tests/lib/cff_1_3_0/authors/one/G_A____/test_bibtex_object.py +++ b/tests/lib/cff_1_3_0/authors/one/G_A____/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_as_string(self): actual_bibtex = bibtex_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "bibtex.bib") diff --git a/tests/lib/cff_1_3_0/authors/one/G_A____/test_codemeta_object.py b/tests/lib/cff_1_3_0/authors/one/G_A____/test_codemeta_object.py index f6d7a3671..a14408a2c 100644 --- a/tests/lib/cff_1_3_0/authors/one/G_A____/test_codemeta_object.py +++ b/tests/lib/cff_1_3_0/authors/one/G_A____/test_codemeta_object.py @@ -18,7 +18,6 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_as_string(self): actual_codemeta = codemeta_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "codemeta.json") @@ -27,11 +26,9 @@ def test_as_string(self): assert actual_codemeta == expected_codemeta def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Person", - "alternateName": "Rafa", - "givenName": "Rafael" - }] + assert codemeta_object().add_author().author == [ + {"@type": "Person", "alternateName": "Rafa", "givenName": "Rafael"} + ] def test_check_cffobj(self): codemeta_object().check_cffobj() diff --git a/tests/lib/cff_1_3_0/authors/one/G_A____/test_endnote_object.py b/tests/lib/cff_1_3_0/authors/one/G_A____/test_endnote_object.py index 9c3186600..a471d3e9b 100644 --- a/tests/lib/cff_1_3_0/authors/one/G_A____/test_endnote_object.py +++ b/tests/lib/cff_1_3_0/authors/one/G_A____/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_as_string(self): actual_endnote = endnote_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "endnote.enw") diff --git a/tests/lib/cff_1_3_0/authors/one/G_A____/test_ris_object.py b/tests/lib/cff_1_3_0/authors/one/G_A____/test_ris_object.py index 5764fa80c..f63dd721e 100644 --- a/tests/lib/cff_1_3_0/authors/one/G_A____/test_ris_object.py +++ b/tests/lib/cff_1_3_0/authors/one/G_A____/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_3_0/authors/one/G_A____/test_schemaorg_object.py b/tests/lib/cff_1_3_0/authors/one/G_A____/test_schemaorg_object.py index 6ee73eb87..0cf2737df 100644 --- a/tests/lib/cff_1_3_0/authors/one/G_A____/test_schemaorg_object.py +++ b/tests/lib/cff_1_3_0/authors/one/G_A____/test_schemaorg_object.py @@ -18,7 +18,6 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_as_string(self): actual_schemaorg = schemaorg_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "schemaorg.json") @@ -27,11 +26,9 @@ def test_as_string(self): assert actual_schemaorg == expected_schemaorg def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Person", - "alternateName": "Rafa", - "givenName": "Rafael" - }] + assert schemaorg_object().add_author().author == [ + {"@type": "Person", "alternateName": "Rafa", "givenName": "Rafael"} + ] def test_check_cffobj(self): schemaorg_object().check_cffobj() diff --git a/tests/lib/cff_1_3_0/authors/one/G_A____/test_zenodo_object.py b/tests/lib/cff_1_3_0/authors/one/G_A____/test_zenodo_object.py index 867397312..2ba02c3f2 100644 --- a/tests/lib/cff_1_3_0/authors/one/G_A____/test_zenodo_object.py +++ b/tests/lib/cff_1_3_0/authors/one/G_A____/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,11 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [ - { - "name": "Rafael" - } - ] + assert zenodo_object().add_creators().creators == [{"name": "Rafael"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None diff --git a/tests/lib/cff_1_3_0/authors/one/G______/test_apalike_object.py b/tests/lib/cff_1_3_0/authors/one/G______/test_apalike_object.py index 9224e7ee2..b14f673c7 100644 --- a/tests/lib/cff_1_3_0/authors/one/G______/test_apalike_object.py +++ b/tests/lib/cff_1_3_0/authors/one/G______/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_as_string(self): actual_apalike = apalike_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "apalike.txt") diff --git a/tests/lib/cff_1_3_0/authors/one/G______/test_bibtex_object.py b/tests/lib/cff_1_3_0/authors/one/G______/test_bibtex_object.py index 1ba1c83f2..959fbbe95 100644 --- a/tests/lib/cff_1_3_0/authors/one/G______/test_bibtex_object.py +++ b/tests/lib/cff_1_3_0/authors/one/G______/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_as_string(self): actual_bibtex = bibtex_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "bibtex.bib") diff --git a/tests/lib/cff_1_3_0/authors/one/G______/test_codemeta_object.py b/tests/lib/cff_1_3_0/authors/one/G______/test_codemeta_object.py index 63574c7e1..ab7bfaa83 100644 --- a/tests/lib/cff_1_3_0/authors/one/G______/test_codemeta_object.py +++ b/tests/lib/cff_1_3_0/authors/one/G______/test_codemeta_object.py @@ -18,7 +18,6 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_as_string(self): actual_codemeta = codemeta_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "codemeta.json") @@ -27,10 +26,7 @@ def test_as_string(self): assert actual_codemeta == expected_codemeta def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Person", - "givenName": "Rafael" - }] + assert codemeta_object().add_author().author == [{"@type": "Person", "givenName": "Rafael"}] def test_check_cffobj(self): codemeta_object().check_cffobj() diff --git a/tests/lib/cff_1_3_0/authors/one/G______/test_endnote_object.py b/tests/lib/cff_1_3_0/authors/one/G______/test_endnote_object.py index 9c3186600..a471d3e9b 100644 --- a/tests/lib/cff_1_3_0/authors/one/G______/test_endnote_object.py +++ b/tests/lib/cff_1_3_0/authors/one/G______/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_as_string(self): actual_endnote = endnote_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "endnote.enw") diff --git a/tests/lib/cff_1_3_0/authors/one/G______/test_ris_object.py b/tests/lib/cff_1_3_0/authors/one/G______/test_ris_object.py index 5764fa80c..f63dd721e 100644 --- a/tests/lib/cff_1_3_0/authors/one/G______/test_ris_object.py +++ b/tests/lib/cff_1_3_0/authors/one/G______/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_3_0/authors/one/G______/test_schemaorg_object.py b/tests/lib/cff_1_3_0/authors/one/G______/test_schemaorg_object.py index 0757029c6..7d65c85b9 100644 --- a/tests/lib/cff_1_3_0/authors/one/G______/test_schemaorg_object.py +++ b/tests/lib/cff_1_3_0/authors/one/G______/test_schemaorg_object.py @@ -18,7 +18,6 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_as_string(self): actual_schemaorg = schemaorg_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "schemaorg.json") @@ -27,10 +26,7 @@ def test_as_string(self): assert actual_schemaorg == expected_schemaorg def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Person", - "givenName": "Rafael" - }] + assert schemaorg_object().add_author().author == [{"@type": "Person", "givenName": "Rafael"}] def test_check_cffobj(self): schemaorg_object().check_cffobj() diff --git a/tests/lib/cff_1_3_0/authors/one/G______/test_zenodo_object.py b/tests/lib/cff_1_3_0/authors/one/G______/test_zenodo_object.py index 867397312..2ba02c3f2 100644 --- a/tests/lib/cff_1_3_0/authors/one/G______/test_zenodo_object.py +++ b/tests/lib/cff_1_3_0/authors/one/G______/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,11 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [ - { - "name": "Rafael" - } - ] + assert zenodo_object().add_creators().creators == [{"name": "Rafael"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None diff --git a/tests/lib/cff_1_3_0/authors/one/_FA____/test_apalike_object.py b/tests/lib/cff_1_3_0/authors/one/_FA____/test_apalike_object.py index e401b92a0..9f37b66c2 100644 --- a/tests/lib/cff_1_3_0/authors/one/_FA____/test_apalike_object.py +++ b/tests/lib/cff_1_3_0/authors/one/_FA____/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_as_string(self): actual_apalike = apalike_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "apalike.txt") diff --git a/tests/lib/cff_1_3_0/authors/one/_FA____/test_bibtex_object.py b/tests/lib/cff_1_3_0/authors/one/_FA____/test_bibtex_object.py index f86ec0b03..2efcba522 100644 --- a/tests/lib/cff_1_3_0/authors/one/_FA____/test_bibtex_object.py +++ b/tests/lib/cff_1_3_0/authors/one/_FA____/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_as_string(self): actual_bibtex = bibtex_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "bibtex.bib") diff --git a/tests/lib/cff_1_3_0/authors/one/_FA____/test_codemeta_object.py b/tests/lib/cff_1_3_0/authors/one/_FA____/test_codemeta_object.py index c991d5752..3984db263 100644 --- a/tests/lib/cff_1_3_0/authors/one/_FA____/test_codemeta_object.py +++ b/tests/lib/cff_1_3_0/authors/one/_FA____/test_codemeta_object.py @@ -18,7 +18,6 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_as_string(self): actual_codemeta = codemeta_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "codemeta.json") @@ -27,11 +26,9 @@ def test_as_string(self): assert actual_codemeta == expected_codemeta def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Person", - "alternateName": "Rafa", - "familyName": "van der Vaart III" - }] + assert codemeta_object().add_author().author == [ + {"@type": "Person", "alternateName": "Rafa", "familyName": "van der Vaart III"} + ] def test_check_cffobj(self): codemeta_object().check_cffobj() diff --git a/tests/lib/cff_1_3_0/authors/one/_FA____/test_endnote_object.py b/tests/lib/cff_1_3_0/authors/one/_FA____/test_endnote_object.py index af1dddf21..4a38ef9d1 100644 --- a/tests/lib/cff_1_3_0/authors/one/_FA____/test_endnote_object.py +++ b/tests/lib/cff_1_3_0/authors/one/_FA____/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_as_string(self): actual_endnote = endnote_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "endnote.enw") diff --git a/tests/lib/cff_1_3_0/authors/one/_FA____/test_ris_object.py b/tests/lib/cff_1_3_0/authors/one/_FA____/test_ris_object.py index e219a9ddd..531c6bac4 100644 --- a/tests/lib/cff_1_3_0/authors/one/_FA____/test_ris_object.py +++ b/tests/lib/cff_1_3_0/authors/one/_FA____/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_3_0/authors/one/_FA____/test_schemaorg_object.py b/tests/lib/cff_1_3_0/authors/one/_FA____/test_schemaorg_object.py index fddba1371..d0d081d11 100644 --- a/tests/lib/cff_1_3_0/authors/one/_FA____/test_schemaorg_object.py +++ b/tests/lib/cff_1_3_0/authors/one/_FA____/test_schemaorg_object.py @@ -18,7 +18,6 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_as_string(self): actual_schemaorg = schemaorg_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "schemaorg.json") @@ -27,11 +26,9 @@ def test_as_string(self): assert actual_schemaorg == expected_schemaorg def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Person", - "alternateName": "Rafa", - "familyName": "van der Vaart III" - }] + assert schemaorg_object().add_author().author == [ + {"@type": "Person", "alternateName": "Rafa", "familyName": "van der Vaart III"} + ] def test_check_cffobj(self): schemaorg_object().check_cffobj() diff --git a/tests/lib/cff_1_3_0/authors/one/_FA____/test_zenodo_object.py b/tests/lib/cff_1_3_0/authors/one/_FA____/test_zenodo_object.py index f75e19c0b..258c1dcb9 100644 --- a/tests/lib/cff_1_3_0/authors/one/_FA____/test_zenodo_object.py +++ b/tests/lib/cff_1_3_0/authors/one/_FA____/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,11 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [ - { - "name": "van der Vaart III" - } - ] + assert zenodo_object().add_creators().creators == [{"name": "van der Vaart III"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None diff --git a/tests/lib/cff_1_3_0/authors/one/_F_____/test_apalike_object.py b/tests/lib/cff_1_3_0/authors/one/_F_____/test_apalike_object.py index e401b92a0..9f37b66c2 100644 --- a/tests/lib/cff_1_3_0/authors/one/_F_____/test_apalike_object.py +++ b/tests/lib/cff_1_3_0/authors/one/_F_____/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_as_string(self): actual_apalike = apalike_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "apalike.txt") diff --git a/tests/lib/cff_1_3_0/authors/one/_F_____/test_bibtex_object.py b/tests/lib/cff_1_3_0/authors/one/_F_____/test_bibtex_object.py index f86ec0b03..2efcba522 100644 --- a/tests/lib/cff_1_3_0/authors/one/_F_____/test_bibtex_object.py +++ b/tests/lib/cff_1_3_0/authors/one/_F_____/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_as_string(self): actual_bibtex = bibtex_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "bibtex.bib") diff --git a/tests/lib/cff_1_3_0/authors/one/_F_____/test_codemeta_object.py b/tests/lib/cff_1_3_0/authors/one/_F_____/test_codemeta_object.py index 5eb51219a..c061d3ed1 100644 --- a/tests/lib/cff_1_3_0/authors/one/_F_____/test_codemeta_object.py +++ b/tests/lib/cff_1_3_0/authors/one/_F_____/test_codemeta_object.py @@ -18,7 +18,6 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_as_string(self): actual_codemeta = codemeta_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "codemeta.json") @@ -27,10 +26,7 @@ def test_as_string(self): assert actual_codemeta == expected_codemeta def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Person", - "familyName": "van der Vaart III" - }] + assert codemeta_object().add_author().author == [{"@type": "Person", "familyName": "van der Vaart III"}] def test_check_cffobj(self): codemeta_object().check_cffobj() diff --git a/tests/lib/cff_1_3_0/authors/one/_F_____/test_endnote_object.py b/tests/lib/cff_1_3_0/authors/one/_F_____/test_endnote_object.py index af1dddf21..4a38ef9d1 100644 --- a/tests/lib/cff_1_3_0/authors/one/_F_____/test_endnote_object.py +++ b/tests/lib/cff_1_3_0/authors/one/_F_____/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_as_string(self): actual_endnote = endnote_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "endnote.enw") diff --git a/tests/lib/cff_1_3_0/authors/one/_F_____/test_ris_object.py b/tests/lib/cff_1_3_0/authors/one/_F_____/test_ris_object.py index e219a9ddd..531c6bac4 100644 --- a/tests/lib/cff_1_3_0/authors/one/_F_____/test_ris_object.py +++ b/tests/lib/cff_1_3_0/authors/one/_F_____/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_3_0/authors/one/_F_____/test_schemaorg_object.py b/tests/lib/cff_1_3_0/authors/one/_F_____/test_schemaorg_object.py index 917ee5593..bd10f8bb6 100644 --- a/tests/lib/cff_1_3_0/authors/one/_F_____/test_schemaorg_object.py +++ b/tests/lib/cff_1_3_0/authors/one/_F_____/test_schemaorg_object.py @@ -18,7 +18,6 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_as_string(self): actual_schemaorg = schemaorg_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "schemaorg.json") @@ -27,10 +26,7 @@ def test_as_string(self): assert actual_schemaorg == expected_schemaorg def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Person", - "familyName": "van der Vaart III" - }] + assert schemaorg_object().add_author().author == [{"@type": "Person", "familyName": "van der Vaart III"}] def test_check_cffobj(self): schemaorg_object().check_cffobj() diff --git a/tests/lib/cff_1_3_0/authors/one/_F_____/test_zenodo_object.py b/tests/lib/cff_1_3_0/authors/one/_F_____/test_zenodo_object.py index f75e19c0b..258c1dcb9 100644 --- a/tests/lib/cff_1_3_0/authors/one/_F_____/test_zenodo_object.py +++ b/tests/lib/cff_1_3_0/authors/one/_F_____/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,11 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [ - { - "name": "van der Vaart III" - } - ] + assert zenodo_object().add_creators().creators == [{"name": "van der Vaart III"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None diff --git a/tests/lib/cff_1_3_0/authors/one/__AN___/test_apalike_object.py b/tests/lib/cff_1_3_0/authors/one/__AN___/test_apalike_object.py index 533049ba8..bdbe83430 100644 --- a/tests/lib/cff_1_3_0/authors/one/__AN___/test_apalike_object.py +++ b/tests/lib/cff_1_3_0/authors/one/__AN___/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_as_string(self): actual_apalike = apalike_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "apalike.txt") diff --git a/tests/lib/cff_1_3_0/authors/one/__AN___/test_bibtex_object.py b/tests/lib/cff_1_3_0/authors/one/__AN___/test_bibtex_object.py index 9e69481d2..e9691bb49 100644 --- a/tests/lib/cff_1_3_0/authors/one/__AN___/test_bibtex_object.py +++ b/tests/lib/cff_1_3_0/authors/one/__AN___/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_as_string(self): actual_bibtex = bibtex_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "bibtex.bib") diff --git a/tests/lib/cff_1_3_0/authors/one/__AN___/test_codemeta_object.py b/tests/lib/cff_1_3_0/authors/one/__AN___/test_codemeta_object.py index a90a60865..4d678cb76 100644 --- a/tests/lib/cff_1_3_0/authors/one/__AN___/test_codemeta_object.py +++ b/tests/lib/cff_1_3_0/authors/one/__AN___/test_codemeta_object.py @@ -18,7 +18,6 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_as_string(self): actual_codemeta = codemeta_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "codemeta.json") @@ -27,11 +26,9 @@ def test_as_string(self): assert actual_codemeta == expected_codemeta def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Organization", - "alternateName": "Rafa", - "name": "The soccer team members" - }] + assert codemeta_object().add_author().author == [ + {"@type": "Organization", "alternateName": "Rafa", "name": "The soccer team members"} + ] def test_check_cffobj(self): codemeta_object().check_cffobj() diff --git a/tests/lib/cff_1_3_0/authors/one/__AN___/test_endnote_object.py b/tests/lib/cff_1_3_0/authors/one/__AN___/test_endnote_object.py index 0fae7cc78..293189884 100644 --- a/tests/lib/cff_1_3_0/authors/one/__AN___/test_endnote_object.py +++ b/tests/lib/cff_1_3_0/authors/one/__AN___/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_as_string(self): actual_endnote = endnote_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "endnote.enw") diff --git a/tests/lib/cff_1_3_0/authors/one/__AN___/test_ris_object.py b/tests/lib/cff_1_3_0/authors/one/__AN___/test_ris_object.py index f447343a6..67cc1b8d2 100644 --- a/tests/lib/cff_1_3_0/authors/one/__AN___/test_ris_object.py +++ b/tests/lib/cff_1_3_0/authors/one/__AN___/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_3_0/authors/one/__AN___/test_schemaorg_object.py b/tests/lib/cff_1_3_0/authors/one/__AN___/test_schemaorg_object.py index 9edae2416..362833082 100644 --- a/tests/lib/cff_1_3_0/authors/one/__AN___/test_schemaorg_object.py +++ b/tests/lib/cff_1_3_0/authors/one/__AN___/test_schemaorg_object.py @@ -18,7 +18,6 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_as_string(self): actual_schemaorg = schemaorg_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "schemaorg.json") @@ -27,11 +26,9 @@ def test_as_string(self): assert actual_schemaorg == expected_schemaorg def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "alternateName": "Rafa", - "name": "The soccer team members" - }] + assert schemaorg_object().add_author().author == [ + {"@type": "Organization", "alternateName": "Rafa", "name": "The soccer team members"} + ] def test_check_cffobj(self): schemaorg_object().check_cffobj() diff --git a/tests/lib/cff_1_3_0/authors/one/__AN___/test_zenodo_object.py b/tests/lib/cff_1_3_0/authors/one/__AN___/test_zenodo_object.py index cca9e8dc3..aba3fa180 100644 --- a/tests/lib/cff_1_3_0/authors/one/__AN___/test_zenodo_object.py +++ b/tests/lib/cff_1_3_0/authors/one/__AN___/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,11 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [ - { - "name": "The soccer team members" - } - ] + assert zenodo_object().add_creators().creators == [{"name": "The soccer team members"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None diff --git a/tests/lib/cff_1_3_0/authors/one/__A____/test_apalike_object.py b/tests/lib/cff_1_3_0/authors/one/__A____/test_apalike_object.py index c9a72b66d..8e3b6824a 100644 --- a/tests/lib/cff_1_3_0/authors/one/__A____/test_apalike_object.py +++ b/tests/lib/cff_1_3_0/authors/one/__A____/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_as_string(self): actual_apalike = apalike_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "apalike.txt") diff --git a/tests/lib/cff_1_3_0/authors/one/__A____/test_bibtex_object.py b/tests/lib/cff_1_3_0/authors/one/__A____/test_bibtex_object.py index ea7cee791..4d4cbd581 100644 --- a/tests/lib/cff_1_3_0/authors/one/__A____/test_bibtex_object.py +++ b/tests/lib/cff_1_3_0/authors/one/__A____/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_as_string(self): actual_bibtex = bibtex_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "bibtex.bib") diff --git a/tests/lib/cff_1_3_0/authors/one/__A____/test_codemeta_object.py b/tests/lib/cff_1_3_0/authors/one/__A____/test_codemeta_object.py index 80ab8fb81..28dc857a1 100644 --- a/tests/lib/cff_1_3_0/authors/one/__A____/test_codemeta_object.py +++ b/tests/lib/cff_1_3_0/authors/one/__A____/test_codemeta_object.py @@ -18,7 +18,6 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_as_string(self): actual_codemeta = codemeta_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "codemeta.json") @@ -27,10 +26,7 @@ def test_as_string(self): assert actual_codemeta == expected_codemeta def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Person", - "alternateName": "Rafa" - }] + assert codemeta_object().add_author().author == [{"@type": "Person", "alternateName": "Rafa"}] def test_check_cffobj(self): codemeta_object().check_cffobj() diff --git a/tests/lib/cff_1_3_0/authors/one/__A____/test_endnote_object.py b/tests/lib/cff_1_3_0/authors/one/__A____/test_endnote_object.py index 2d505bb20..22485b1fd 100644 --- a/tests/lib/cff_1_3_0/authors/one/__A____/test_endnote_object.py +++ b/tests/lib/cff_1_3_0/authors/one/__A____/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_as_string(self): actual_endnote = endnote_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "endnote.enw") diff --git a/tests/lib/cff_1_3_0/authors/one/__A____/test_ris_object.py b/tests/lib/cff_1_3_0/authors/one/__A____/test_ris_object.py index 665a8a0f3..4a3e773de 100644 --- a/tests/lib/cff_1_3_0/authors/one/__A____/test_ris_object.py +++ b/tests/lib/cff_1_3_0/authors/one/__A____/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_3_0/authors/one/__A____/test_schemaorg_object.py b/tests/lib/cff_1_3_0/authors/one/__A____/test_schemaorg_object.py index f87b35468..a3c3e8196 100644 --- a/tests/lib/cff_1_3_0/authors/one/__A____/test_schemaorg_object.py +++ b/tests/lib/cff_1_3_0/authors/one/__A____/test_schemaorg_object.py @@ -18,7 +18,6 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_as_string(self): actual_schemaorg = schemaorg_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "schemaorg.json") @@ -27,10 +26,7 @@ def test_as_string(self): assert actual_schemaorg == expected_schemaorg def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Person", - "alternateName": "Rafa" - }] + assert schemaorg_object().add_author().author == [{"@type": "Person", "alternateName": "Rafa"}] def test_check_cffobj(self): schemaorg_object().check_cffobj() diff --git a/tests/lib/cff_1_3_0/authors/one/__A____/test_zenodo_object.py b/tests/lib/cff_1_3_0/authors/one/__A____/test_zenodo_object.py index c512f1ad4..e99fe9e56 100644 --- a/tests/lib/cff_1_3_0/authors/one/__A____/test_zenodo_object.py +++ b/tests/lib/cff_1_3_0/authors/one/__A____/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -30,11 +29,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [ - { - "name": "Rafa" - } - ] + assert zenodo_object().add_creators().creators == [{"name": "Rafa"}] def test_check_cffobj(self): zenodo_object().check_cffobj() diff --git a/tests/lib/cff_1_3_0/authors/one/___N___/test_apalike_object.py b/tests/lib/cff_1_3_0/authors/one/___N___/test_apalike_object.py index 533049ba8..bdbe83430 100644 --- a/tests/lib/cff_1_3_0/authors/one/___N___/test_apalike_object.py +++ b/tests/lib/cff_1_3_0/authors/one/___N___/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_as_string(self): actual_apalike = apalike_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "apalike.txt") diff --git a/tests/lib/cff_1_3_0/authors/one/___N___/test_bibtex_object.py b/tests/lib/cff_1_3_0/authors/one/___N___/test_bibtex_object.py index 9e69481d2..e9691bb49 100644 --- a/tests/lib/cff_1_3_0/authors/one/___N___/test_bibtex_object.py +++ b/tests/lib/cff_1_3_0/authors/one/___N___/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_as_string(self): actual_bibtex = bibtex_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "bibtex.bib") diff --git a/tests/lib/cff_1_3_0/authors/one/___N___/test_codemeta_object.py b/tests/lib/cff_1_3_0/authors/one/___N___/test_codemeta_object.py index 8d7b7377f..48955f206 100644 --- a/tests/lib/cff_1_3_0/authors/one/___N___/test_codemeta_object.py +++ b/tests/lib/cff_1_3_0/authors/one/___N___/test_codemeta_object.py @@ -18,7 +18,6 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_as_string(self): actual_codemeta = codemeta_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "codemeta.json") @@ -27,10 +26,7 @@ def test_as_string(self): assert actual_codemeta == expected_codemeta def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Organization", - "name": "The soccer team members" - }] + assert codemeta_object().add_author().author == [{"@type": "Organization", "name": "The soccer team members"}] def test_check_cffobj(self): codemeta_object().check_cffobj() diff --git a/tests/lib/cff_1_3_0/authors/one/___N___/test_endnote_object.py b/tests/lib/cff_1_3_0/authors/one/___N___/test_endnote_object.py index 0fae7cc78..293189884 100644 --- a/tests/lib/cff_1_3_0/authors/one/___N___/test_endnote_object.py +++ b/tests/lib/cff_1_3_0/authors/one/___N___/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_as_string(self): actual_endnote = endnote_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "endnote.enw") diff --git a/tests/lib/cff_1_3_0/authors/one/___N___/test_ris_object.py b/tests/lib/cff_1_3_0/authors/one/___N___/test_ris_object.py index f447343a6..67cc1b8d2 100644 --- a/tests/lib/cff_1_3_0/authors/one/___N___/test_ris_object.py +++ b/tests/lib/cff_1_3_0/authors/one/___N___/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_3_0/authors/one/___N___/test_schemaorg_object.py b/tests/lib/cff_1_3_0/authors/one/___N___/test_schemaorg_object.py index 846ba02f1..1ee727e9b 100644 --- a/tests/lib/cff_1_3_0/authors/one/___N___/test_schemaorg_object.py +++ b/tests/lib/cff_1_3_0/authors/one/___N___/test_schemaorg_object.py @@ -18,7 +18,6 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_as_string(self): actual_schemaorg = schemaorg_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "schemaorg.json") @@ -27,10 +26,7 @@ def test_as_string(self): assert actual_schemaorg == expected_schemaorg def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "The soccer team members" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "The soccer team members"}] def test_check_cffobj(self): schemaorg_object().check_cffobj() diff --git a/tests/lib/cff_1_3_0/authors/one/___N___/test_zenodo_object.py b/tests/lib/cff_1_3_0/authors/one/___N___/test_zenodo_object.py index c88b41dad..38d6c3363 100644 --- a/tests/lib/cff_1_3_0/authors/one/___N___/test_zenodo_object.py +++ b/tests/lib/cff_1_3_0/authors/one/___N___/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -30,11 +29,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [ - { - "name": "The soccer team members" - } - ] + assert zenodo_object().add_creators().creators == [{"name": "The soccer team members"}] def test_check_cffobj(self): zenodo_object().check_cffobj() diff --git a/tests/lib/cff_1_3_0/authors/two/GF_____/test_apalike_object.py b/tests/lib/cff_1_3_0/authors/two/GF_____/test_apalike_object.py index eceea980a..e3e4384bc 100644 --- a/tests/lib/cff_1_3_0/authors/two/GF_____/test_apalike_object.py +++ b/tests/lib/cff_1_3_0/authors/two/GF_____/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_as_string(self): actual_apalike = apalike_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "apalike.txt") diff --git a/tests/lib/cff_1_3_0/authors/two/GF_____/test_bibtex_object.py b/tests/lib/cff_1_3_0/authors/two/GF_____/test_bibtex_object.py index 2560e1190..1450adad1 100644 --- a/tests/lib/cff_1_3_0/authors/two/GF_____/test_bibtex_object.py +++ b/tests/lib/cff_1_3_0/authors/two/GF_____/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_as_string(self): actual_bibtex = bibtex_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "bibtex.bib") @@ -27,8 +26,10 @@ def test_as_string(self): assert actual_bibtex == expected_bibtex def test_author(self): - assert bibtex_object().add_author().author == "author = {van der Vaart III, Rafael and dos " + \ - "Santos Aveiro, Cristiano Ronaldo}" + assert ( + bibtex_object().add_author().author + == "author = {van der Vaart III, Rafael and dos " + "Santos Aveiro, Cristiano Ronaldo}" + ) def test_check_cffobj(self): bibtex_object().check_cffobj() diff --git a/tests/lib/cff_1_3_0/authors/two/GF_____/test_codemeta_object.py b/tests/lib/cff_1_3_0/authors/two/GF_____/test_codemeta_object.py index 355f01749..296cf78e5 100644 --- a/tests/lib/cff_1_3_0/authors/two/GF_____/test_codemeta_object.py +++ b/tests/lib/cff_1_3_0/authors/two/GF_____/test_codemeta_object.py @@ -18,7 +18,6 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_as_string(self): actual_codemeta = codemeta_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "codemeta.json") @@ -27,15 +26,10 @@ def test_as_string(self): assert actual_codemeta == expected_codemeta def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Person", - "familyName": "van der Vaart III", - "givenName": "Rafael" - }, { - "@type": "Person", - "familyName": "dos Santos Aveiro", - "givenName": "Cristiano Ronaldo" - }] + assert codemeta_object().add_author().author == [ + {"@type": "Person", "familyName": "van der Vaart III", "givenName": "Rafael"}, + {"@type": "Person", "familyName": "dos Santos Aveiro", "givenName": "Cristiano Ronaldo"}, + ] def test_check_cffobj(self): codemeta_object().check_cffobj() diff --git a/tests/lib/cff_1_3_0/authors/two/GF_____/test_endnote_object.py b/tests/lib/cff_1_3_0/authors/two/GF_____/test_endnote_object.py index f864fbe91..6e6b36845 100644 --- a/tests/lib/cff_1_3_0/authors/two/GF_____/test_endnote_object.py +++ b/tests/lib/cff_1_3_0/authors/two/GF_____/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_as_string(self): actual_endnote = endnote_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "endnote.enw") @@ -27,8 +26,10 @@ def test_as_string(self): assert actual_endnote == expected_endnote def test_author(self): - assert endnote_object().add_author().author == "%A van der Vaart III, Rafael\n" + \ - "%A dos Santos Aveiro, Cristiano Ronaldo\n" + assert ( + endnote_object().add_author().author + == "%A van der Vaart III, Rafael\n" + "%A dos Santos Aveiro, Cristiano Ronaldo\n" + ) def test_check_cffobj(self): endnote_object().check_cffobj() diff --git a/tests/lib/cff_1_3_0/authors/two/GF_____/test_ris_object.py b/tests/lib/cff_1_3_0/authors/two/GF_____/test_ris_object.py index 85a469ae7..593be69e9 100644 --- a/tests/lib/cff_1_3_0/authors/two/GF_____/test_ris_object.py +++ b/tests/lib/cff_1_3_0/authors/two/GF_____/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None @@ -30,8 +29,10 @@ def test_as_string(self): assert actual_ris == expected_ris def test_author(self): - assert ris_object().add_author().author == "AU - van der Vaart III, Rafael\n" + \ - "AU - dos Santos Aveiro, Cristiano Ronaldo\n" + assert ( + ris_object().add_author().author + == "AU - van der Vaart III, Rafael\n" + "AU - dos Santos Aveiro, Cristiano Ronaldo\n" + ) def test_check_cffobj(self): ris_object().check_cffobj() diff --git a/tests/lib/cff_1_3_0/authors/two/GF_____/test_schemaorg_object.py b/tests/lib/cff_1_3_0/authors/two/GF_____/test_schemaorg_object.py index 0746092d4..67c7f2b51 100644 --- a/tests/lib/cff_1_3_0/authors/two/GF_____/test_schemaorg_object.py +++ b/tests/lib/cff_1_3_0/authors/two/GF_____/test_schemaorg_object.py @@ -18,7 +18,6 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_as_string(self): actual_schemaorg = schemaorg_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "schemaorg.json") @@ -27,15 +26,10 @@ def test_as_string(self): assert actual_schemaorg == expected_schemaorg def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Person", - "familyName": "van der Vaart III", - "givenName": "Rafael" - }, { - "@type": "Person", - "familyName": "dos Santos Aveiro", - "givenName": "Cristiano Ronaldo" - }] + assert schemaorg_object().add_author().author == [ + {"@type": "Person", "familyName": "van der Vaart III", "givenName": "Rafael"}, + {"@type": "Person", "familyName": "dos Santos Aveiro", "givenName": "Cristiano Ronaldo"}, + ] def test_check_cffobj(self): schemaorg_object().check_cffobj() diff --git a/tests/lib/cff_1_3_0/authors/two/GF_____/test_zenodo_object.py b/tests/lib/cff_1_3_0/authors/two/GF_____/test_zenodo_object.py index f5b989a53..e98ea4619 100644 --- a/tests/lib/cff_1_3_0/authors/two/GF_____/test_zenodo_object.py +++ b/tests/lib/cff_1_3_0/authors/two/GF_____/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -35,12 +34,8 @@ def test_contributors(self): def test_creators(self): assert zenodo_object().add_creators().creators == [ - { - "name": "van der Vaart III, Rafael" - }, - { - "name": "dos Santos Aveiro, Cristiano Ronaldo" - } + {"name": "van der Vaart III, Rafael"}, + {"name": "dos Santos Aveiro, Cristiano Ronaldo"}, ] def test_keywords(self): diff --git a/tests/lib/cff_1_3_0/contributors/one/GFA_AOE/test_apalike_object.py b/tests/lib/cff_1_3_0/contributors/one/GFA_AOE/test_apalike_object.py index 3cf4d351b..ebe74449c 100644 --- a/tests/lib/cff_1_3_0/contributors/one/GFA_AOE/test_apalike_object.py +++ b/tests/lib/cff_1_3_0/contributors/one/GFA_AOE/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_as_string(self): actual_apalike = apalike_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "apalike.txt") diff --git a/tests/lib/cff_1_3_0/contributors/one/GFA_AOE/test_bibtex_object.py b/tests/lib/cff_1_3_0/contributors/one/GFA_AOE/test_bibtex_object.py index 96f5d4183..9b5eeca63 100644 --- a/tests/lib/cff_1_3_0/contributors/one/GFA_AOE/test_bibtex_object.py +++ b/tests/lib/cff_1_3_0/contributors/one/GFA_AOE/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_as_string(self): actual_bibtex = bibtex_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "bibtex.bib") diff --git a/tests/lib/cff_1_3_0/contributors/one/GFA_AOE/test_endnote_object.py b/tests/lib/cff_1_3_0/contributors/one/GFA_AOE/test_endnote_object.py index 0f7e19325..fe1484023 100644 --- a/tests/lib/cff_1_3_0/contributors/one/GFA_AOE/test_endnote_object.py +++ b/tests/lib/cff_1_3_0/contributors/one/GFA_AOE/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_as_string(self): actual_endnote = endnote_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "endnote.enw") diff --git a/tests/lib/cff_1_3_0/contributors/one/GFA_AOE/test_ris_object.py b/tests/lib/cff_1_3_0/contributors/one/GFA_AOE/test_ris_object.py index 2194e7457..412d2ef86 100644 --- a/tests/lib/cff_1_3_0/contributors/one/GFA_AOE/test_ris_object.py +++ b/tests/lib/cff_1_3_0/contributors/one/GFA_AOE/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_3_0/contributors/one/GFA_AOE/test_schemaorg_object.py b/tests/lib/cff_1_3_0/contributors/one/GFA_AOE/test_schemaorg_object.py index 8aa1680ae..5145af2b9 100644 --- a/tests/lib/cff_1_3_0/contributors/one/GFA_AOE/test_schemaorg_object.py +++ b/tests/lib/cff_1_3_0/contributors/one/GFA_AOE/test_schemaorg_object.py @@ -18,7 +18,6 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_as_string(self): actual_schemaorg = schemaorg_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "schemaorg.json") @@ -27,10 +26,7 @@ def test_as_string(self): assert actual_schemaorg == expected_schemaorg def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "The author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "The author"}] def test_check_cffobj(self): schemaorg_object().check_cffobj() @@ -40,18 +36,17 @@ def test_code_repository(self): assert schemaorg_object().add_urls().code_repository is None def test_contributor(self): - assert schemaorg_object().add_contributor().contributor == [{ - "@id": "https://orcid.org/0000-0002-7064-4069", - "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": "Netherlands eScience Center" - }, - "alternateName": "jspaaks", - "email": "my@email.notexist", - "familyName": "von der Spaaks Jr.", - "givenName": "Jurriaan H." - }] + assert schemaorg_object().add_contributor().contributor == [ + { + "@id": "https://orcid.org/0000-0002-7064-4069", + "@type": "Person", + "affiliation": {"@type": "Organization", "name": "Netherlands eScience Center"}, + "alternateName": "jspaaks", + "email": "my@email.notexist", + "familyName": "von der Spaaks Jr.", + "givenName": "Jurriaan H.", + } + ] def test_date_published(self): assert schemaorg_object().add_date_published().date_published is None diff --git a/tests/lib/cff_1_3_0/contributors/one/GFA_AOE/test_zenodo_object.py b/tests/lib/cff_1_3_0/contributors/one/GFA_AOE/test_zenodo_object.py index 43a385442..886094aaf 100644 --- a/tests/lib/cff_1_3_0/contributors/one/GFA_AOE/test_zenodo_object.py +++ b/tests/lib/cff_1_3_0/contributors/one/GFA_AOE/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -36,16 +35,12 @@ def test_contributors(self): "affiliation": "Netherlands eScience Center", "name": "von der Spaaks Jr., Jurriaan H.", "orcid": "0000-0002-7064-4069", - "type": "Other" + "type": "Other", } ] def test_creators(self): - assert zenodo_object().add_creators().creators == [ - { - "name": "The author" - } - ] + assert zenodo_object().add_creators().creators == [{"name": "The author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None diff --git a/tests/lib/cff_1_3_0/contributors/one/GFA_AO_/test_apalike_object.py b/tests/lib/cff_1_3_0/contributors/one/GFA_AO_/test_apalike_object.py index 3cf4d351b..ebe74449c 100644 --- a/tests/lib/cff_1_3_0/contributors/one/GFA_AO_/test_apalike_object.py +++ b/tests/lib/cff_1_3_0/contributors/one/GFA_AO_/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_as_string(self): actual_apalike = apalike_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "apalike.txt") diff --git a/tests/lib/cff_1_3_0/contributors/one/GFA_AO_/test_bibtex_object.py b/tests/lib/cff_1_3_0/contributors/one/GFA_AO_/test_bibtex_object.py index 96f5d4183..9b5eeca63 100644 --- a/tests/lib/cff_1_3_0/contributors/one/GFA_AO_/test_bibtex_object.py +++ b/tests/lib/cff_1_3_0/contributors/one/GFA_AO_/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_as_string(self): actual_bibtex = bibtex_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "bibtex.bib") diff --git a/tests/lib/cff_1_3_0/contributors/one/GFA_AO_/test_endnote_object.py b/tests/lib/cff_1_3_0/contributors/one/GFA_AO_/test_endnote_object.py index 0f7e19325..fe1484023 100644 --- a/tests/lib/cff_1_3_0/contributors/one/GFA_AO_/test_endnote_object.py +++ b/tests/lib/cff_1_3_0/contributors/one/GFA_AO_/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_as_string(self): actual_endnote = endnote_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "endnote.enw") diff --git a/tests/lib/cff_1_3_0/contributors/one/GFA_AO_/test_ris_object.py b/tests/lib/cff_1_3_0/contributors/one/GFA_AO_/test_ris_object.py index 2194e7457..412d2ef86 100644 --- a/tests/lib/cff_1_3_0/contributors/one/GFA_AO_/test_ris_object.py +++ b/tests/lib/cff_1_3_0/contributors/one/GFA_AO_/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_3_0/contributors/one/GFA_AO_/test_schemaorg_object.py b/tests/lib/cff_1_3_0/contributors/one/GFA_AO_/test_schemaorg_object.py index a42ec4dc1..ea2c111d7 100644 --- a/tests/lib/cff_1_3_0/contributors/one/GFA_AO_/test_schemaorg_object.py +++ b/tests/lib/cff_1_3_0/contributors/one/GFA_AO_/test_schemaorg_object.py @@ -18,7 +18,6 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_as_string(self): actual_schemaorg = schemaorg_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "schemaorg.json") @@ -27,10 +26,7 @@ def test_as_string(self): assert actual_schemaorg == expected_schemaorg def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "The author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "The author"}] def test_check_cffobj(self): schemaorg_object().check_cffobj() @@ -40,17 +36,16 @@ def test_code_repository(self): assert schemaorg_object().add_urls().code_repository is None def test_contributor(self): - assert schemaorg_object().add_contributor().contributor == [{ - "@id": "https://orcid.org/0000-0002-7064-4069", - "@type": "Person", - "affiliation": { - "@type": "Organization", - "name": "Netherlands eScience Center" - }, - "alternateName": "jspaaks", - "familyName": "von der Spaaks Jr.", - "givenName": "Jurriaan H." - }] + assert schemaorg_object().add_contributor().contributor == [ + { + "@id": "https://orcid.org/0000-0002-7064-4069", + "@type": "Person", + "affiliation": {"@type": "Organization", "name": "Netherlands eScience Center"}, + "alternateName": "jspaaks", + "familyName": "von der Spaaks Jr.", + "givenName": "Jurriaan H.", + } + ] def test_date_published(self): assert schemaorg_object().add_date_published().date_published is None diff --git a/tests/lib/cff_1_3_0/contributors/one/GFA_AO_/test_zenodo_object.py b/tests/lib/cff_1_3_0/contributors/one/GFA_AO_/test_zenodo_object.py index 43a385442..886094aaf 100644 --- a/tests/lib/cff_1_3_0/contributors/one/GFA_AO_/test_zenodo_object.py +++ b/tests/lib/cff_1_3_0/contributors/one/GFA_AO_/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -36,16 +35,12 @@ def test_contributors(self): "affiliation": "Netherlands eScience Center", "name": "von der Spaaks Jr., Jurriaan H.", "orcid": "0000-0002-7064-4069", - "type": "Other" + "type": "Other", } ] def test_creators(self): - assert zenodo_object().add_creators().creators == [ - { - "name": "The author" - } - ] + assert zenodo_object().add_creators().creators == [{"name": "The author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None diff --git a/tests/lib/cff_1_3_0/contributors/one/GFA____/test_apalike_object.py b/tests/lib/cff_1_3_0/contributors/one/GFA____/test_apalike_object.py index 3cf4d351b..ebe74449c 100644 --- a/tests/lib/cff_1_3_0/contributors/one/GFA____/test_apalike_object.py +++ b/tests/lib/cff_1_3_0/contributors/one/GFA____/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_as_string(self): actual_apalike = apalike_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "apalike.txt") diff --git a/tests/lib/cff_1_3_0/contributors/one/GFA____/test_bibtex_object.py b/tests/lib/cff_1_3_0/contributors/one/GFA____/test_bibtex_object.py index 96f5d4183..9b5eeca63 100644 --- a/tests/lib/cff_1_3_0/contributors/one/GFA____/test_bibtex_object.py +++ b/tests/lib/cff_1_3_0/contributors/one/GFA____/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_as_string(self): actual_bibtex = bibtex_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "bibtex.bib") diff --git a/tests/lib/cff_1_3_0/contributors/one/GFA____/test_endnote_object.py b/tests/lib/cff_1_3_0/contributors/one/GFA____/test_endnote_object.py index 0f7e19325..fe1484023 100644 --- a/tests/lib/cff_1_3_0/contributors/one/GFA____/test_endnote_object.py +++ b/tests/lib/cff_1_3_0/contributors/one/GFA____/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_as_string(self): actual_endnote = endnote_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "endnote.enw") diff --git a/tests/lib/cff_1_3_0/contributors/one/GFA____/test_ris_object.py b/tests/lib/cff_1_3_0/contributors/one/GFA____/test_ris_object.py index 2194e7457..412d2ef86 100644 --- a/tests/lib/cff_1_3_0/contributors/one/GFA____/test_ris_object.py +++ b/tests/lib/cff_1_3_0/contributors/one/GFA____/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_3_0/contributors/one/GFA____/test_schemaorg_object.py b/tests/lib/cff_1_3_0/contributors/one/GFA____/test_schemaorg_object.py index 55305669e..31357acf2 100644 --- a/tests/lib/cff_1_3_0/contributors/one/GFA____/test_schemaorg_object.py +++ b/tests/lib/cff_1_3_0/contributors/one/GFA____/test_schemaorg_object.py @@ -18,7 +18,6 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_as_string(self): actual_schemaorg = schemaorg_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "schemaorg.json") @@ -27,10 +26,7 @@ def test_as_string(self): assert actual_schemaorg == expected_schemaorg def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "The author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "The author"}] def test_check_cffobj(self): schemaorg_object().check_cffobj() @@ -40,12 +36,9 @@ def test_code_repository(self): assert schemaorg_object().add_urls().code_repository is None def test_contributor(self): - assert schemaorg_object().add_contributor().contributor == [{ - "@type": "Person", - "alternateName": "Rafa", - "familyName": "van der Vaart III", - "givenName": "Rafael" - }] + assert schemaorg_object().add_contributor().contributor == [ + {"@type": "Person", "alternateName": "Rafa", "familyName": "van der Vaart III", "givenName": "Rafael"} + ] def test_date_published(self): assert schemaorg_object().add_date_published().date_published is None diff --git a/tests/lib/cff_1_3_0/contributors/one/GFA____/test_zenodo_object.py b/tests/lib/cff_1_3_0/contributors/one/GFA____/test_zenodo_object.py index 58b1570d9..82a116ae1 100644 --- a/tests/lib/cff_1_3_0/contributors/one/GFA____/test_zenodo_object.py +++ b/tests/lib/cff_1_3_0/contributors/one/GFA____/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -32,18 +31,11 @@ def test_check_cffobj(self): def test_contributors(self): assert zenodo_object().add_contributors().contributors == [ - { - "name": "van der Vaart III, Rafael", - "type": "Other" - } + {"name": "van der Vaart III, Rafael", "type": "Other"} ] def test_creators(self): - assert zenodo_object().add_creators().creators == [ - { - "name": "The author" - } - ] + assert zenodo_object().add_creators().creators == [{"name": "The author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None diff --git a/tests/lib/cff_1_3_0/contributors/one/GF_____/test_apalike_object.py b/tests/lib/cff_1_3_0/contributors/one/GF_____/test_apalike_object.py index 3cf4d351b..ebe74449c 100644 --- a/tests/lib/cff_1_3_0/contributors/one/GF_____/test_apalike_object.py +++ b/tests/lib/cff_1_3_0/contributors/one/GF_____/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_as_string(self): actual_apalike = apalike_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "apalike.txt") diff --git a/tests/lib/cff_1_3_0/contributors/one/GF_____/test_bibtex_object.py b/tests/lib/cff_1_3_0/contributors/one/GF_____/test_bibtex_object.py index 96f5d4183..9b5eeca63 100644 --- a/tests/lib/cff_1_3_0/contributors/one/GF_____/test_bibtex_object.py +++ b/tests/lib/cff_1_3_0/contributors/one/GF_____/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_as_string(self): actual_bibtex = bibtex_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "bibtex.bib") diff --git a/tests/lib/cff_1_3_0/contributors/one/GF_____/test_endnote_object.py b/tests/lib/cff_1_3_0/contributors/one/GF_____/test_endnote_object.py index 0f7e19325..fe1484023 100644 --- a/tests/lib/cff_1_3_0/contributors/one/GF_____/test_endnote_object.py +++ b/tests/lib/cff_1_3_0/contributors/one/GF_____/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_as_string(self): actual_endnote = endnote_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "endnote.enw") diff --git a/tests/lib/cff_1_3_0/contributors/one/GF_____/test_ris_object.py b/tests/lib/cff_1_3_0/contributors/one/GF_____/test_ris_object.py index 2194e7457..412d2ef86 100644 --- a/tests/lib/cff_1_3_0/contributors/one/GF_____/test_ris_object.py +++ b/tests/lib/cff_1_3_0/contributors/one/GF_____/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_3_0/contributors/one/GF_____/test_schemaorg_object.py b/tests/lib/cff_1_3_0/contributors/one/GF_____/test_schemaorg_object.py index 4e42f6174..28a7c7898 100644 --- a/tests/lib/cff_1_3_0/contributors/one/GF_____/test_schemaorg_object.py +++ b/tests/lib/cff_1_3_0/contributors/one/GF_____/test_schemaorg_object.py @@ -18,7 +18,6 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_as_string(self): actual_schemaorg = schemaorg_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "schemaorg.json") @@ -27,10 +26,7 @@ def test_as_string(self): assert actual_schemaorg == expected_schemaorg def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "The author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "The author"}] def test_check_cffobj(self): schemaorg_object().check_cffobj() @@ -40,11 +36,9 @@ def test_code_repository(self): assert schemaorg_object().add_urls().code_repository is None def test_contributor(self): - assert schemaorg_object().add_contributor().contributor == [{ - "@type": "Person", - "familyName": "van der Vaart III", - "givenName": "Rafael" - }] + assert schemaorg_object().add_contributor().contributor == [ + {"@type": "Person", "familyName": "van der Vaart III", "givenName": "Rafael"} + ] def test_date_published(self): assert schemaorg_object().add_date_published().date_published is None diff --git a/tests/lib/cff_1_3_0/contributors/one/GF_____/test_zenodo_object.py b/tests/lib/cff_1_3_0/contributors/one/GF_____/test_zenodo_object.py index 58b1570d9..82a116ae1 100644 --- a/tests/lib/cff_1_3_0/contributors/one/GF_____/test_zenodo_object.py +++ b/tests/lib/cff_1_3_0/contributors/one/GF_____/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -32,18 +31,11 @@ def test_check_cffobj(self): def test_contributors(self): assert zenodo_object().add_contributors().contributors == [ - { - "name": "van der Vaart III, Rafael", - "type": "Other" - } + {"name": "van der Vaart III, Rafael", "type": "Other"} ] def test_creators(self): - assert zenodo_object().add_creators().creators == [ - { - "name": "The author" - } - ] + assert zenodo_object().add_creators().creators == [{"name": "The author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None diff --git a/tests/lib/cff_1_3_0/contributors/one/G_A____/test_apalike_object.py b/tests/lib/cff_1_3_0/contributors/one/G_A____/test_apalike_object.py index 3cf4d351b..ebe74449c 100644 --- a/tests/lib/cff_1_3_0/contributors/one/G_A____/test_apalike_object.py +++ b/tests/lib/cff_1_3_0/contributors/one/G_A____/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_as_string(self): actual_apalike = apalike_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "apalike.txt") diff --git a/tests/lib/cff_1_3_0/contributors/one/G_A____/test_bibtex_object.py b/tests/lib/cff_1_3_0/contributors/one/G_A____/test_bibtex_object.py index 96f5d4183..9b5eeca63 100644 --- a/tests/lib/cff_1_3_0/contributors/one/G_A____/test_bibtex_object.py +++ b/tests/lib/cff_1_3_0/contributors/one/G_A____/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_as_string(self): actual_bibtex = bibtex_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "bibtex.bib") diff --git a/tests/lib/cff_1_3_0/contributors/one/G_A____/test_endnote_object.py b/tests/lib/cff_1_3_0/contributors/one/G_A____/test_endnote_object.py index 0f7e19325..fe1484023 100644 --- a/tests/lib/cff_1_3_0/contributors/one/G_A____/test_endnote_object.py +++ b/tests/lib/cff_1_3_0/contributors/one/G_A____/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_as_string(self): actual_endnote = endnote_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "endnote.enw") diff --git a/tests/lib/cff_1_3_0/contributors/one/G_A____/test_ris_object.py b/tests/lib/cff_1_3_0/contributors/one/G_A____/test_ris_object.py index 2194e7457..412d2ef86 100644 --- a/tests/lib/cff_1_3_0/contributors/one/G_A____/test_ris_object.py +++ b/tests/lib/cff_1_3_0/contributors/one/G_A____/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_3_0/contributors/one/G_A____/test_schemaorg_object.py b/tests/lib/cff_1_3_0/contributors/one/G_A____/test_schemaorg_object.py index bf94a35d7..9895b9954 100644 --- a/tests/lib/cff_1_3_0/contributors/one/G_A____/test_schemaorg_object.py +++ b/tests/lib/cff_1_3_0/contributors/one/G_A____/test_schemaorg_object.py @@ -18,7 +18,6 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_as_string(self): actual_schemaorg = schemaorg_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "schemaorg.json") @@ -27,10 +26,7 @@ def test_as_string(self): assert actual_schemaorg == expected_schemaorg def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "The author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "The author"}] def test_check_cffobj(self): schemaorg_object().check_cffobj() @@ -40,11 +36,9 @@ def test_code_repository(self): assert schemaorg_object().add_urls().code_repository is None def test_contributor(self): - assert schemaorg_object().add_contributor().contributor == [{ - "@type": "Person", - "alternateName": "Rafa", - "givenName": "Rafael" - }] + assert schemaorg_object().add_contributor().contributor == [ + {"@type": "Person", "alternateName": "Rafa", "givenName": "Rafael"} + ] def test_date_published(self): assert schemaorg_object().add_date_published().date_published is None diff --git a/tests/lib/cff_1_3_0/contributors/one/G_A____/test_zenodo_object.py b/tests/lib/cff_1_3_0/contributors/one/G_A____/test_zenodo_object.py index 2f3867e17..0d107564c 100644 --- a/tests/lib/cff_1_3_0/contributors/one/G_A____/test_zenodo_object.py +++ b/tests/lib/cff_1_3_0/contributors/one/G_A____/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -31,19 +30,10 @@ def test_check_cffobj(self): # doesn't need an assert def test_contributors(self): - assert zenodo_object().add_contributors().contributors == [ - { - "name": "Rafael", - "type": "Other" - } - ] + assert zenodo_object().add_contributors().contributors == [{"name": "Rafael", "type": "Other"}] def test_creators(self): - assert zenodo_object().add_creators().creators == [ - { - "name": "The author" - } - ] + assert zenodo_object().add_creators().creators == [{"name": "The author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None diff --git a/tests/lib/cff_1_3_0/contributors/one/G______/test_apalike_object.py b/tests/lib/cff_1_3_0/contributors/one/G______/test_apalike_object.py index 3cf4d351b..ebe74449c 100644 --- a/tests/lib/cff_1_3_0/contributors/one/G______/test_apalike_object.py +++ b/tests/lib/cff_1_3_0/contributors/one/G______/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_as_string(self): actual_apalike = apalike_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "apalike.txt") diff --git a/tests/lib/cff_1_3_0/contributors/one/G______/test_bibtex_object.py b/tests/lib/cff_1_3_0/contributors/one/G______/test_bibtex_object.py index 96f5d4183..9b5eeca63 100644 --- a/tests/lib/cff_1_3_0/contributors/one/G______/test_bibtex_object.py +++ b/tests/lib/cff_1_3_0/contributors/one/G______/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_as_string(self): actual_bibtex = bibtex_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "bibtex.bib") diff --git a/tests/lib/cff_1_3_0/contributors/one/G______/test_endnote_object.py b/tests/lib/cff_1_3_0/contributors/one/G______/test_endnote_object.py index 0f7e19325..fe1484023 100644 --- a/tests/lib/cff_1_3_0/contributors/one/G______/test_endnote_object.py +++ b/tests/lib/cff_1_3_0/contributors/one/G______/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_as_string(self): actual_endnote = endnote_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "endnote.enw") diff --git a/tests/lib/cff_1_3_0/contributors/one/G______/test_ris_object.py b/tests/lib/cff_1_3_0/contributors/one/G______/test_ris_object.py index 2194e7457..412d2ef86 100644 --- a/tests/lib/cff_1_3_0/contributors/one/G______/test_ris_object.py +++ b/tests/lib/cff_1_3_0/contributors/one/G______/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_3_0/contributors/one/G______/test_schemaorg_object.py b/tests/lib/cff_1_3_0/contributors/one/G______/test_schemaorg_object.py index 5340d7f1c..19b9b6b34 100644 --- a/tests/lib/cff_1_3_0/contributors/one/G______/test_schemaorg_object.py +++ b/tests/lib/cff_1_3_0/contributors/one/G______/test_schemaorg_object.py @@ -18,7 +18,6 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_as_string(self): actual_schemaorg = schemaorg_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "schemaorg.json") @@ -27,10 +26,7 @@ def test_as_string(self): assert actual_schemaorg == expected_schemaorg def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "The author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "The author"}] def test_check_cffobj(self): schemaorg_object().check_cffobj() @@ -40,10 +36,7 @@ def test_code_repository(self): assert schemaorg_object().add_urls().code_repository is None def test_contributor(self): - assert schemaorg_object().add_contributor().contributor == [{ - "@type": "Person", - "givenName": "Rafael" - }] + assert schemaorg_object().add_contributor().contributor == [{"@type": "Person", "givenName": "Rafael"}] def test_date_published(self): assert schemaorg_object().add_date_published().date_published is None diff --git a/tests/lib/cff_1_3_0/contributors/one/G______/test_zenodo_object.py b/tests/lib/cff_1_3_0/contributors/one/G______/test_zenodo_object.py index 2f3867e17..0d107564c 100644 --- a/tests/lib/cff_1_3_0/contributors/one/G______/test_zenodo_object.py +++ b/tests/lib/cff_1_3_0/contributors/one/G______/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -31,19 +30,10 @@ def test_check_cffobj(self): # doesn't need an assert def test_contributors(self): - assert zenodo_object().add_contributors().contributors == [ - { - "name": "Rafael", - "type": "Other" - } - ] + assert zenodo_object().add_contributors().contributors == [{"name": "Rafael", "type": "Other"}] def test_creators(self): - assert zenodo_object().add_creators().creators == [ - { - "name": "The author" - } - ] + assert zenodo_object().add_creators().creators == [{"name": "The author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None diff --git a/tests/lib/cff_1_3_0/contributors/one/_FA____/test_apalike_object.py b/tests/lib/cff_1_3_0/contributors/one/_FA____/test_apalike_object.py index 3cf4d351b..ebe74449c 100644 --- a/tests/lib/cff_1_3_0/contributors/one/_FA____/test_apalike_object.py +++ b/tests/lib/cff_1_3_0/contributors/one/_FA____/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_as_string(self): actual_apalike = apalike_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "apalike.txt") diff --git a/tests/lib/cff_1_3_0/contributors/one/_FA____/test_bibtex_object.py b/tests/lib/cff_1_3_0/contributors/one/_FA____/test_bibtex_object.py index 96f5d4183..9b5eeca63 100644 --- a/tests/lib/cff_1_3_0/contributors/one/_FA____/test_bibtex_object.py +++ b/tests/lib/cff_1_3_0/contributors/one/_FA____/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_as_string(self): actual_bibtex = bibtex_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "bibtex.bib") diff --git a/tests/lib/cff_1_3_0/contributors/one/_FA____/test_endnote_object.py b/tests/lib/cff_1_3_0/contributors/one/_FA____/test_endnote_object.py index 0f7e19325..fe1484023 100644 --- a/tests/lib/cff_1_3_0/contributors/one/_FA____/test_endnote_object.py +++ b/tests/lib/cff_1_3_0/contributors/one/_FA____/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_as_string(self): actual_endnote = endnote_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "endnote.enw") diff --git a/tests/lib/cff_1_3_0/contributors/one/_FA____/test_ris_object.py b/tests/lib/cff_1_3_0/contributors/one/_FA____/test_ris_object.py index 2194e7457..412d2ef86 100644 --- a/tests/lib/cff_1_3_0/contributors/one/_FA____/test_ris_object.py +++ b/tests/lib/cff_1_3_0/contributors/one/_FA____/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_3_0/contributors/one/_FA____/test_schemaorg_object.py b/tests/lib/cff_1_3_0/contributors/one/_FA____/test_schemaorg_object.py index bc896e90f..835d6d113 100644 --- a/tests/lib/cff_1_3_0/contributors/one/_FA____/test_schemaorg_object.py +++ b/tests/lib/cff_1_3_0/contributors/one/_FA____/test_schemaorg_object.py @@ -18,7 +18,6 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_as_string(self): actual_schemaorg = schemaorg_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "schemaorg.json") @@ -27,10 +26,7 @@ def test_as_string(self): assert actual_schemaorg == expected_schemaorg def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "The author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "The author"}] def test_check_cffobj(self): schemaorg_object().check_cffobj() @@ -40,11 +36,9 @@ def test_code_repository(self): assert schemaorg_object().add_urls().code_repository is None def test_contributor(self): - assert schemaorg_object().add_contributor().contributor == [{ - "@type": "Person", - "alternateName": "Rafa", - "familyName": "van der Vaart III" - }] + assert schemaorg_object().add_contributor().contributor == [ + {"@type": "Person", "alternateName": "Rafa", "familyName": "van der Vaart III"} + ] def test_date_published(self): assert schemaorg_object().add_date_published().date_published is None diff --git a/tests/lib/cff_1_3_0/contributors/one/_FA____/test_zenodo_object.py b/tests/lib/cff_1_3_0/contributors/one/_FA____/test_zenodo_object.py index 1a076e411..b739318e4 100644 --- a/tests/lib/cff_1_3_0/contributors/one/_FA____/test_zenodo_object.py +++ b/tests/lib/cff_1_3_0/contributors/one/_FA____/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -31,19 +30,10 @@ def test_check_cffobj(self): # doesn't need an assert def test_contributors(self): - assert zenodo_object().add_contributors().contributors == [ - { - "name": "van der Vaart III", - "type": "Other" - } - ] + assert zenodo_object().add_contributors().contributors == [{"name": "van der Vaart III", "type": "Other"}] def test_creators(self): - assert zenodo_object().add_creators().creators == [ - { - "name": "The author" - } - ] + assert zenodo_object().add_creators().creators == [{"name": "The author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None diff --git a/tests/lib/cff_1_3_0/contributors/one/_F_____/test_apalike_object.py b/tests/lib/cff_1_3_0/contributors/one/_F_____/test_apalike_object.py index 3cf4d351b..ebe74449c 100644 --- a/tests/lib/cff_1_3_0/contributors/one/_F_____/test_apalike_object.py +++ b/tests/lib/cff_1_3_0/contributors/one/_F_____/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_as_string(self): actual_apalike = apalike_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "apalike.txt") diff --git a/tests/lib/cff_1_3_0/contributors/one/_F_____/test_bibtex_object.py b/tests/lib/cff_1_3_0/contributors/one/_F_____/test_bibtex_object.py index 96f5d4183..9b5eeca63 100644 --- a/tests/lib/cff_1_3_0/contributors/one/_F_____/test_bibtex_object.py +++ b/tests/lib/cff_1_3_0/contributors/one/_F_____/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_as_string(self): actual_bibtex = bibtex_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "bibtex.bib") diff --git a/tests/lib/cff_1_3_0/contributors/one/_F_____/test_endnote_object.py b/tests/lib/cff_1_3_0/contributors/one/_F_____/test_endnote_object.py index 0f7e19325..fe1484023 100644 --- a/tests/lib/cff_1_3_0/contributors/one/_F_____/test_endnote_object.py +++ b/tests/lib/cff_1_3_0/contributors/one/_F_____/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_as_string(self): actual_endnote = endnote_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "endnote.enw") diff --git a/tests/lib/cff_1_3_0/contributors/one/_F_____/test_ris_object.py b/tests/lib/cff_1_3_0/contributors/one/_F_____/test_ris_object.py index 2194e7457..412d2ef86 100644 --- a/tests/lib/cff_1_3_0/contributors/one/_F_____/test_ris_object.py +++ b/tests/lib/cff_1_3_0/contributors/one/_F_____/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_3_0/contributors/one/_F_____/test_schemaorg_object.py b/tests/lib/cff_1_3_0/contributors/one/_F_____/test_schemaorg_object.py index 1a5be2d50..d583590b8 100644 --- a/tests/lib/cff_1_3_0/contributors/one/_F_____/test_schemaorg_object.py +++ b/tests/lib/cff_1_3_0/contributors/one/_F_____/test_schemaorg_object.py @@ -18,7 +18,6 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_as_string(self): actual_schemaorg = schemaorg_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "schemaorg.json") @@ -27,10 +26,7 @@ def test_as_string(self): assert actual_schemaorg == expected_schemaorg def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "The author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "The author"}] def test_check_cffobj(self): schemaorg_object().check_cffobj() @@ -40,10 +36,9 @@ def test_code_repository(self): assert schemaorg_object().add_urls().code_repository is None def test_contributor(self): - assert schemaorg_object().add_contributor().contributor == [{ - "@type": "Person", - "familyName": "van der Vaart III" - }] + assert schemaorg_object().add_contributor().contributor == [ + {"@type": "Person", "familyName": "van der Vaart III"} + ] def test_date_published(self): assert schemaorg_object().add_date_published().date_published is None diff --git a/tests/lib/cff_1_3_0/contributors/one/_F_____/test_zenodo_object.py b/tests/lib/cff_1_3_0/contributors/one/_F_____/test_zenodo_object.py index 1a076e411..b739318e4 100644 --- a/tests/lib/cff_1_3_0/contributors/one/_F_____/test_zenodo_object.py +++ b/tests/lib/cff_1_3_0/contributors/one/_F_____/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -31,19 +30,10 @@ def test_check_cffobj(self): # doesn't need an assert def test_contributors(self): - assert zenodo_object().add_contributors().contributors == [ - { - "name": "van der Vaart III", - "type": "Other" - } - ] + assert zenodo_object().add_contributors().contributors == [{"name": "van der Vaart III", "type": "Other"}] def test_creators(self): - assert zenodo_object().add_creators().creators == [ - { - "name": "The author" - } - ] + assert zenodo_object().add_creators().creators == [{"name": "The author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None diff --git a/tests/lib/cff_1_3_0/contributors/one/__AN___/test_apalike_object.py b/tests/lib/cff_1_3_0/contributors/one/__AN___/test_apalike_object.py index 3cf4d351b..ebe74449c 100644 --- a/tests/lib/cff_1_3_0/contributors/one/__AN___/test_apalike_object.py +++ b/tests/lib/cff_1_3_0/contributors/one/__AN___/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_as_string(self): actual_apalike = apalike_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "apalike.txt") diff --git a/tests/lib/cff_1_3_0/contributors/one/__AN___/test_bibtex_object.py b/tests/lib/cff_1_3_0/contributors/one/__AN___/test_bibtex_object.py index 96f5d4183..9b5eeca63 100644 --- a/tests/lib/cff_1_3_0/contributors/one/__AN___/test_bibtex_object.py +++ b/tests/lib/cff_1_3_0/contributors/one/__AN___/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_as_string(self): actual_bibtex = bibtex_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "bibtex.bib") diff --git a/tests/lib/cff_1_3_0/contributors/one/__AN___/test_endnote_object.py b/tests/lib/cff_1_3_0/contributors/one/__AN___/test_endnote_object.py index 0f7e19325..fe1484023 100644 --- a/tests/lib/cff_1_3_0/contributors/one/__AN___/test_endnote_object.py +++ b/tests/lib/cff_1_3_0/contributors/one/__AN___/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_as_string(self): actual_endnote = endnote_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "endnote.enw") diff --git a/tests/lib/cff_1_3_0/contributors/one/__AN___/test_ris_object.py b/tests/lib/cff_1_3_0/contributors/one/__AN___/test_ris_object.py index 2194e7457..412d2ef86 100644 --- a/tests/lib/cff_1_3_0/contributors/one/__AN___/test_ris_object.py +++ b/tests/lib/cff_1_3_0/contributors/one/__AN___/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_3_0/contributors/one/__AN___/test_schemaorg_object.py b/tests/lib/cff_1_3_0/contributors/one/__AN___/test_schemaorg_object.py index 1386aa1fa..16ea3aac9 100644 --- a/tests/lib/cff_1_3_0/contributors/one/__AN___/test_schemaorg_object.py +++ b/tests/lib/cff_1_3_0/contributors/one/__AN___/test_schemaorg_object.py @@ -18,7 +18,6 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_as_string(self): actual_schemaorg = schemaorg_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "schemaorg.json") @@ -27,10 +26,7 @@ def test_as_string(self): assert actual_schemaorg == expected_schemaorg def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "The author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "The author"}] def test_check_cffobj(self): schemaorg_object().check_cffobj() @@ -40,11 +36,9 @@ def test_code_repository(self): assert schemaorg_object().add_urls().code_repository is None def test_contributor(self): - assert schemaorg_object().add_contributor().contributor == [{ - "@type": "Organization", - "alternateName": "Rafa", - "name": "The soccer team members" - }] + assert schemaorg_object().add_contributor().contributor == [ + {"@type": "Organization", "alternateName": "Rafa", "name": "The soccer team members"} + ] def test_date_published(self): assert schemaorg_object().add_date_published().date_published is None diff --git a/tests/lib/cff_1_3_0/contributors/one/__AN___/test_zenodo_object.py b/tests/lib/cff_1_3_0/contributors/one/__AN___/test_zenodo_object.py index e942511b2..ab1af30fd 100644 --- a/tests/lib/cff_1_3_0/contributors/one/__AN___/test_zenodo_object.py +++ b/tests/lib/cff_1_3_0/contributors/one/__AN___/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -31,19 +30,10 @@ def test_check_cffobj(self): # doesn't need an assert def test_contributors(self): - assert zenodo_object().add_contributors().contributors == [ - { - "name": "The soccer team members", - "type": "Other" - } - ] + assert zenodo_object().add_contributors().contributors == [{"name": "The soccer team members", "type": "Other"}] def test_creators(self): - assert zenodo_object().add_creators().creators == [ - { - "name": "The author" - } - ] + assert zenodo_object().add_creators().creators == [{"name": "The author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None diff --git a/tests/lib/cff_1_3_0/contributors/one/___N___/test_apalike_object.py b/tests/lib/cff_1_3_0/contributors/one/___N___/test_apalike_object.py index 3cf4d351b..ebe74449c 100644 --- a/tests/lib/cff_1_3_0/contributors/one/___N___/test_apalike_object.py +++ b/tests/lib/cff_1_3_0/contributors/one/___N___/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_as_string(self): actual_apalike = apalike_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "apalike.txt") diff --git a/tests/lib/cff_1_3_0/contributors/one/___N___/test_bibtex_object.py b/tests/lib/cff_1_3_0/contributors/one/___N___/test_bibtex_object.py index 96f5d4183..9b5eeca63 100644 --- a/tests/lib/cff_1_3_0/contributors/one/___N___/test_bibtex_object.py +++ b/tests/lib/cff_1_3_0/contributors/one/___N___/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_as_string(self): actual_bibtex = bibtex_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "bibtex.bib") diff --git a/tests/lib/cff_1_3_0/contributors/one/___N___/test_endnote_object.py b/tests/lib/cff_1_3_0/contributors/one/___N___/test_endnote_object.py index 0f7e19325..fe1484023 100644 --- a/tests/lib/cff_1_3_0/contributors/one/___N___/test_endnote_object.py +++ b/tests/lib/cff_1_3_0/contributors/one/___N___/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_as_string(self): actual_endnote = endnote_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "endnote.enw") diff --git a/tests/lib/cff_1_3_0/contributors/one/___N___/test_ris_object.py b/tests/lib/cff_1_3_0/contributors/one/___N___/test_ris_object.py index 2194e7457..412d2ef86 100644 --- a/tests/lib/cff_1_3_0/contributors/one/___N___/test_ris_object.py +++ b/tests/lib/cff_1_3_0/contributors/one/___N___/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_3_0/contributors/one/___N___/test_schemaorg_object.py b/tests/lib/cff_1_3_0/contributors/one/___N___/test_schemaorg_object.py index c64df5101..69d51ffd5 100644 --- a/tests/lib/cff_1_3_0/contributors/one/___N___/test_schemaorg_object.py +++ b/tests/lib/cff_1_3_0/contributors/one/___N___/test_schemaorg_object.py @@ -18,7 +18,6 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_as_string(self): actual_schemaorg = schemaorg_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "schemaorg.json") @@ -27,10 +26,7 @@ def test_as_string(self): assert actual_schemaorg == expected_schemaorg def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "The author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "The author"}] def test_check_cffobj(self): schemaorg_object().check_cffobj() @@ -40,10 +36,9 @@ def test_code_repository(self): assert schemaorg_object().add_urls().code_repository is None def test_contributor(self): - assert schemaorg_object().add_contributor().contributor == [{ - "@type": "Organization", - "name": "The soccer team members" - }] + assert schemaorg_object().add_contributor().contributor == [ + {"@type": "Organization", "name": "The soccer team members"} + ] def test_date_published(self): assert schemaorg_object().add_date_published().date_published is None diff --git a/tests/lib/cff_1_3_0/contributors/one/___N___/test_zenodo_object.py b/tests/lib/cff_1_3_0/contributors/one/___N___/test_zenodo_object.py index f5fd732d3..432e8cfe3 100644 --- a/tests/lib/cff_1_3_0/contributors/one/___N___/test_zenodo_object.py +++ b/tests/lib/cff_1_3_0/contributors/one/___N___/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -27,19 +26,10 @@ def test_as_string(self): assert actual_zenodo == expected_zenodo def test_contributors(self): - assert zenodo_object().add_contributors().contributors == [ - { - "name": "The soccer team members", - "type": "Other" - } - ] + assert zenodo_object().add_contributors().contributors == [{"name": "The soccer team members", "type": "Other"}] def test_creators(self): - assert zenodo_object().add_creators().creators == [ - { - "name": "The author" - } - ] + assert zenodo_object().add_creators().creators == [{"name": "The author"}] def test_check_cffobj(self): zenodo_object().check_cffobj() diff --git a/tests/lib/cff_1_3_0/contributors/two/GF_____/test_apalike_object.py b/tests/lib/cff_1_3_0/contributors/two/GF_____/test_apalike_object.py index 3cf4d351b..ebe74449c 100644 --- a/tests/lib/cff_1_3_0/contributors/two/GF_____/test_apalike_object.py +++ b/tests/lib/cff_1_3_0/contributors/two/GF_____/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_as_string(self): actual_apalike = apalike_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "apalike.txt") diff --git a/tests/lib/cff_1_3_0/contributors/two/GF_____/test_bibtex_object.py b/tests/lib/cff_1_3_0/contributors/two/GF_____/test_bibtex_object.py index 96f5d4183..9b5eeca63 100644 --- a/tests/lib/cff_1_3_0/contributors/two/GF_____/test_bibtex_object.py +++ b/tests/lib/cff_1_3_0/contributors/two/GF_____/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_as_string(self): actual_bibtex = bibtex_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "bibtex.bib") diff --git a/tests/lib/cff_1_3_0/contributors/two/GF_____/test_endnote_object.py b/tests/lib/cff_1_3_0/contributors/two/GF_____/test_endnote_object.py index 0f7e19325..fe1484023 100644 --- a/tests/lib/cff_1_3_0/contributors/two/GF_____/test_endnote_object.py +++ b/tests/lib/cff_1_3_0/contributors/two/GF_____/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_as_string(self): actual_endnote = endnote_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "endnote.enw") diff --git a/tests/lib/cff_1_3_0/contributors/two/GF_____/test_ris_object.py b/tests/lib/cff_1_3_0/contributors/two/GF_____/test_ris_object.py index 2194e7457..412d2ef86 100644 --- a/tests/lib/cff_1_3_0/contributors/two/GF_____/test_ris_object.py +++ b/tests/lib/cff_1_3_0/contributors/two/GF_____/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_3_0/contributors/two/GF_____/test_schemaorg_object.py b/tests/lib/cff_1_3_0/contributors/two/GF_____/test_schemaorg_object.py index bd0bbc6f2..8f6b8e7a1 100644 --- a/tests/lib/cff_1_3_0/contributors/two/GF_____/test_schemaorg_object.py +++ b/tests/lib/cff_1_3_0/contributors/two/GF_____/test_schemaorg_object.py @@ -18,7 +18,6 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_as_string(self): actual_schemaorg = schemaorg_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "schemaorg.json") @@ -27,10 +26,7 @@ def test_as_string(self): assert actual_schemaorg == expected_schemaorg def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "The author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "The author"}] def test_check_cffobj(self): schemaorg_object().check_cffobj() @@ -40,15 +36,10 @@ def test_code_repository(self): assert schemaorg_object().add_urls().code_repository is None def test_contributor(self): - assert schemaorg_object().add_contributor().contributor == [{ - "@type": "Person", - "familyName": "van der Vaart III", - "givenName": "Rafael" - }, { - "@type": "Person", - "familyName": "dos Santos Aveiro", - "givenName": "Cristiano Ronaldo" - }] + assert schemaorg_object().add_contributor().contributor == [ + {"@type": "Person", "familyName": "van der Vaart III", "givenName": "Rafael"}, + {"@type": "Person", "familyName": "dos Santos Aveiro", "givenName": "Cristiano Ronaldo"}, + ] def test_date_published(self): assert schemaorg_object().add_date_published().date_published is None diff --git a/tests/lib/cff_1_3_0/contributors/two/GF_____/test_zenodo_object.py b/tests/lib/cff_1_3_0/contributors/two/GF_____/test_zenodo_object.py index 13c676927..22b64792a 100644 --- a/tests/lib/cff_1_3_0/contributors/two/GF_____/test_zenodo_object.py +++ b/tests/lib/cff_1_3_0/contributors/two/GF_____/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -32,22 +31,12 @@ def test_check_cffobj(self): def test_contributors(self): assert zenodo_object().add_contributors().contributors == [ - { - "name": "van der Vaart III, Rafael", - "type": "Other" - }, - { - "name": "dos Santos Aveiro, Cristiano Ronaldo", - "type": "Other" - } + {"name": "van der Vaart III, Rafael", "type": "Other"}, + {"name": "dos Santos Aveiro, Cristiano Ronaldo", "type": "Other"}, ] def test_creators(self): - assert zenodo_object().add_creators().creators == [ - { - "name": "The author" - } - ] + assert zenodo_object().add_creators().creators == [{"name": "The author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None diff --git a/tests/lib/cff_1_3_0/identifiers/relation/test_zenodo_related_identifiers.py b/tests/lib/cff_1_3_0/identifiers/relation/test_zenodo_related_identifiers.py index f5faebaf5..7aab06e4b 100644 --- a/tests/lib/cff_1_3_0/identifiers/relation/test_zenodo_related_identifiers.py +++ b/tests/lib/cff_1_3_0/identifiers/relation/test_zenodo_related_identifiers.py @@ -41,19 +41,12 @@ def get_relation_types(): "Obsoletes", "References", "Requires", - "Reviews" + "Reviews", ] def get_relation_types_skip(): - return [ - "HasMetadata", - "HasVersion", - "IsMetadataFor", - "IsOriginalFormOf", - "IsVariantFormOf", - "IsVersionOf" - ] + return ["HasMetadata", "HasVersion", "IsMetadataFor", "IsOriginalFormOf", "IsVariantFormOf", "IsVersionOf"] @pytest.mark.lib diff --git a/tests/lib/cff_1_3_0/identifiers/sources/DI/test_apalike_object.py b/tests/lib/cff_1_3_0/identifiers/sources/DI/test_apalike_object.py index f07220aa7..490a0d70c 100644 --- a/tests/lib/cff_1_3_0/identifiers/sources/DI/test_apalike_object.py +++ b/tests/lib/cff_1_3_0/identifiers/sources/DI/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_as_string(self): actual_apalike = apalike_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "apalike.txt") diff --git a/tests/lib/cff_1_3_0/identifiers/sources/DI/test_bibtex_object.py b/tests/lib/cff_1_3_0/identifiers/sources/DI/test_bibtex_object.py index 45f0d1fa6..25f538b7a 100644 --- a/tests/lib/cff_1_3_0/identifiers/sources/DI/test_bibtex_object.py +++ b/tests/lib/cff_1_3_0/identifiers/sources/DI/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_as_string(self): actual_bibtex = bibtex_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "bibtex.bib") diff --git a/tests/lib/cff_1_3_0/identifiers/sources/DI/test_codemeta_object.py b/tests/lib/cff_1_3_0/identifiers/sources/DI/test_codemeta_object.py index c9e159b1d..aa1995baf 100644 --- a/tests/lib/cff_1_3_0/identifiers/sources/DI/test_codemeta_object.py +++ b/tests/lib/cff_1_3_0/identifiers/sources/DI/test_codemeta_object.py @@ -18,7 +18,6 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_as_string(self): actual_codemeta = codemeta_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "codemeta.json") @@ -27,10 +26,7 @@ def test_as_string(self): assert actual_codemeta == expected_codemeta def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert codemeta_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_check_cffobj(self): codemeta_object().check_cffobj() diff --git a/tests/lib/cff_1_3_0/identifiers/sources/DI/test_endnote_object.py b/tests/lib/cff_1_3_0/identifiers/sources/DI/test_endnote_object.py index e87cd51be..090ad3cd2 100644 --- a/tests/lib/cff_1_3_0/identifiers/sources/DI/test_endnote_object.py +++ b/tests/lib/cff_1_3_0/identifiers/sources/DI/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_as_string(self): actual_endnote = endnote_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "endnote.enw") diff --git a/tests/lib/cff_1_3_0/identifiers/sources/DI/test_ris_object.py b/tests/lib/cff_1_3_0/identifiers/sources/DI/test_ris_object.py index ac996a3ae..edd1d2b38 100644 --- a/tests/lib/cff_1_3_0/identifiers/sources/DI/test_ris_object.py +++ b/tests/lib/cff_1_3_0/identifiers/sources/DI/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_3_0/identifiers/sources/DI/test_schemaorg_object.py b/tests/lib/cff_1_3_0/identifiers/sources/DI/test_schemaorg_object.py index 152935f42..0f705e309 100644 --- a/tests/lib/cff_1_3_0/identifiers/sources/DI/test_schemaorg_object.py +++ b/tests/lib/cff_1_3_0/identifiers/sources/DI/test_schemaorg_object.py @@ -18,7 +18,6 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_as_string(self): actual_schemaorg = schemaorg_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "schemaorg.json") @@ -27,10 +26,7 @@ def test_as_string(self): assert actual_schemaorg == expected_schemaorg def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_check_cffobj(self): schemaorg_object().check_cffobj() diff --git a/tests/lib/cff_1_3_0/identifiers/sources/DI/test_zenodo_object.py b/tests/lib/cff_1_3_0/identifiers/sources/DI/test_zenodo_object.py index 18887ce72..bd0972d18 100644 --- a/tests/lib/cff_1_3_0/identifiers/sources/DI/test_zenodo_object.py +++ b/tests/lib/cff_1_3_0/identifiers/sources/DI/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,11 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [ - { - "name": "Test author" - } - ] + assert zenodo_object().add_creators().creators == [{"name": "Test author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None @@ -50,15 +45,10 @@ def test_publication_date(self): assert zenodo_object().add_publication_date().publication_date is None def test_related_identifiers(self): - assert zenodo_object().add_related_identifiers().related_identifiers == [{ - "identifier": "10.0000/from-identifiers", - "relation": "isSupplementedBy", - "scheme": "doi" - }, { - "identifier": "10.0000/from-doi", - "relation": "isSupplementedBy", - "scheme": "doi" - }] + assert zenodo_object().add_related_identifiers().related_identifiers == [ + {"identifier": "10.0000/from-identifiers", "relation": "isSupplementedBy", "scheme": "doi"}, + {"identifier": "10.0000/from-doi", "relation": "isSupplementedBy", "scheme": "doi"}, + ] def test_title(self): assert zenodo_object().add_title().title == "Test title" diff --git a/tests/lib/cff_1_3_0/identifiers/sources/DI_duplicate_dois/test_apalike_object.py b/tests/lib/cff_1_3_0/identifiers/sources/DI_duplicate_dois/test_apalike_object.py index 1e3857547..b3b0c7fd8 100644 --- a/tests/lib/cff_1_3_0/identifiers/sources/DI_duplicate_dois/test_apalike_object.py +++ b/tests/lib/cff_1_3_0/identifiers/sources/DI_duplicate_dois/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_as_string(self): actual_apalike = apalike_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "apalike.txt") diff --git a/tests/lib/cff_1_3_0/identifiers/sources/DI_duplicate_dois/test_bibtex_object.py b/tests/lib/cff_1_3_0/identifiers/sources/DI_duplicate_dois/test_bibtex_object.py index 410df69b5..9c0ad5b69 100644 --- a/tests/lib/cff_1_3_0/identifiers/sources/DI_duplicate_dois/test_bibtex_object.py +++ b/tests/lib/cff_1_3_0/identifiers/sources/DI_duplicate_dois/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_as_string(self): actual_bibtex = bibtex_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "bibtex.bib") diff --git a/tests/lib/cff_1_3_0/identifiers/sources/DI_duplicate_dois/test_codemeta_object.py b/tests/lib/cff_1_3_0/identifiers/sources/DI_duplicate_dois/test_codemeta_object.py index 5890f6d8d..2691f7fa9 100644 --- a/tests/lib/cff_1_3_0/identifiers/sources/DI_duplicate_dois/test_codemeta_object.py +++ b/tests/lib/cff_1_3_0/identifiers/sources/DI_duplicate_dois/test_codemeta_object.py @@ -18,7 +18,6 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_as_string(self): actual_codemeta = codemeta_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "codemeta.json") @@ -27,10 +26,7 @@ def test_as_string(self): assert actual_codemeta == expected_codemeta def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert codemeta_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_check_cffobj(self): codemeta_object().check_cffobj() diff --git a/tests/lib/cff_1_3_0/identifiers/sources/DI_duplicate_dois/test_endnote_object.py b/tests/lib/cff_1_3_0/identifiers/sources/DI_duplicate_dois/test_endnote_object.py index b89701d67..fe4330c26 100644 --- a/tests/lib/cff_1_3_0/identifiers/sources/DI_duplicate_dois/test_endnote_object.py +++ b/tests/lib/cff_1_3_0/identifiers/sources/DI_duplicate_dois/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_as_string(self): actual_endnote = endnote_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "endnote.enw") diff --git a/tests/lib/cff_1_3_0/identifiers/sources/DI_duplicate_dois/test_ris_object.py b/tests/lib/cff_1_3_0/identifiers/sources/DI_duplicate_dois/test_ris_object.py index 3db439fec..ed2987d67 100644 --- a/tests/lib/cff_1_3_0/identifiers/sources/DI_duplicate_dois/test_ris_object.py +++ b/tests/lib/cff_1_3_0/identifiers/sources/DI_duplicate_dois/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_3_0/identifiers/sources/DI_duplicate_dois/test_schemaorg_object.py b/tests/lib/cff_1_3_0/identifiers/sources/DI_duplicate_dois/test_schemaorg_object.py index 6a0dd57ec..3ab0537da 100644 --- a/tests/lib/cff_1_3_0/identifiers/sources/DI_duplicate_dois/test_schemaorg_object.py +++ b/tests/lib/cff_1_3_0/identifiers/sources/DI_duplicate_dois/test_schemaorg_object.py @@ -18,7 +18,6 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_as_string(self): actual_schemaorg = schemaorg_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "schemaorg.json") @@ -27,10 +26,7 @@ def test_as_string(self): assert actual_schemaorg == expected_schemaorg def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_check_cffobj(self): schemaorg_object().check_cffobj() diff --git a/tests/lib/cff_1_3_0/identifiers/sources/DI_duplicate_dois/test_zenodo_object.py b/tests/lib/cff_1_3_0/identifiers/sources/DI_duplicate_dois/test_zenodo_object.py index caa68ff9c..640b7d45c 100644 --- a/tests/lib/cff_1_3_0/identifiers/sources/DI_duplicate_dois/test_zenodo_object.py +++ b/tests/lib/cff_1_3_0/identifiers/sources/DI_duplicate_dois/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,11 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [ - { - "name": "Test author" - } - ] + assert zenodo_object().add_creators().creators == [{"name": "Test author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None @@ -50,11 +45,9 @@ def test_publication_date(self): assert zenodo_object().add_publication_date().publication_date is None def test_related_identifiers(self): - assert zenodo_object().add_related_identifiers().related_identifiers == [{ - "identifier": "10.0000/some-doi", - "relation": "isSupplementedBy", - "scheme": "doi" - }] + assert zenodo_object().add_related_identifiers().related_identifiers == [ + {"identifier": "10.0000/some-doi", "relation": "isSupplementedBy", "scheme": "doi"} + ] def test_title(self): assert zenodo_object().add_title().title == "Test title" diff --git a/tests/lib/cff_1_3_0/identifiers/sources/DI_duplicate_urls/test_apalike_object.py b/tests/lib/cff_1_3_0/identifiers/sources/DI_duplicate_urls/test_apalike_object.py index dafe0015f..13ac1b691 100644 --- a/tests/lib/cff_1_3_0/identifiers/sources/DI_duplicate_urls/test_apalike_object.py +++ b/tests/lib/cff_1_3_0/identifiers/sources/DI_duplicate_urls/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_as_string(self): actual_apalike = apalike_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "apalike.txt") diff --git a/tests/lib/cff_1_3_0/identifiers/sources/DI_duplicate_urls/test_bibtex_object.py b/tests/lib/cff_1_3_0/identifiers/sources/DI_duplicate_urls/test_bibtex_object.py index a39f8fba4..8ccabff20 100644 --- a/tests/lib/cff_1_3_0/identifiers/sources/DI_duplicate_urls/test_bibtex_object.py +++ b/tests/lib/cff_1_3_0/identifiers/sources/DI_duplicate_urls/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_as_string(self): actual_bibtex = bibtex_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "bibtex.bib") diff --git a/tests/lib/cff_1_3_0/identifiers/sources/DI_duplicate_urls/test_codemeta_object.py b/tests/lib/cff_1_3_0/identifiers/sources/DI_duplicate_urls/test_codemeta_object.py index 060ad3f58..d022538ce 100644 --- a/tests/lib/cff_1_3_0/identifiers/sources/DI_duplicate_urls/test_codemeta_object.py +++ b/tests/lib/cff_1_3_0/identifiers/sources/DI_duplicate_urls/test_codemeta_object.py @@ -18,7 +18,6 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_as_string(self): actual_codemeta = codemeta_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "codemeta.json") @@ -27,10 +26,7 @@ def test_as_string(self): assert actual_codemeta == expected_codemeta def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert codemeta_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_check_cffobj(self): codemeta_object().check_cffobj() diff --git a/tests/lib/cff_1_3_0/identifiers/sources/DI_duplicate_urls/test_endnote_object.py b/tests/lib/cff_1_3_0/identifiers/sources/DI_duplicate_urls/test_endnote_object.py index 4a4b62911..de6cb3f24 100644 --- a/tests/lib/cff_1_3_0/identifiers/sources/DI_duplicate_urls/test_endnote_object.py +++ b/tests/lib/cff_1_3_0/identifiers/sources/DI_duplicate_urls/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_as_string(self): actual_endnote = endnote_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "endnote.enw") diff --git a/tests/lib/cff_1_3_0/identifiers/sources/DI_duplicate_urls/test_ris_object.py b/tests/lib/cff_1_3_0/identifiers/sources/DI_duplicate_urls/test_ris_object.py index b04c5951d..a7080f581 100644 --- a/tests/lib/cff_1_3_0/identifiers/sources/DI_duplicate_urls/test_ris_object.py +++ b/tests/lib/cff_1_3_0/identifiers/sources/DI_duplicate_urls/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_3_0/identifiers/sources/DI_duplicate_urls/test_schemaorg_object.py b/tests/lib/cff_1_3_0/identifiers/sources/DI_duplicate_urls/test_schemaorg_object.py index 4d2e1fbf6..c211089ee 100644 --- a/tests/lib/cff_1_3_0/identifiers/sources/DI_duplicate_urls/test_schemaorg_object.py +++ b/tests/lib/cff_1_3_0/identifiers/sources/DI_duplicate_urls/test_schemaorg_object.py @@ -18,7 +18,6 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_as_string(self): actual_schemaorg = schemaorg_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "schemaorg.json") @@ -27,10 +26,7 @@ def test_as_string(self): assert actual_schemaorg == expected_schemaorg def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_check_cffobj(self): schemaorg_object().check_cffobj() diff --git a/tests/lib/cff_1_3_0/identifiers/sources/DI_duplicate_urls/test_zenodo_object.py b/tests/lib/cff_1_3_0/identifiers/sources/DI_duplicate_urls/test_zenodo_object.py index e8f9b9b87..537a7164d 100644 --- a/tests/lib/cff_1_3_0/identifiers/sources/DI_duplicate_urls/test_zenodo_object.py +++ b/tests/lib/cff_1_3_0/identifiers/sources/DI_duplicate_urls/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,11 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [ - { - "name": "Test author" - } - ] + assert zenodo_object().add_creators().creators == [{"name": "Test author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None @@ -50,11 +45,9 @@ def test_publication_date(self): assert zenodo_object().add_publication_date().publication_date is None def test_related_identifiers(self): - assert zenodo_object().add_related_identifiers().related_identifiers == [{ - "identifier": "https://github.com/somewhere", - "relation": "isSupplementedBy", - "scheme": "url" - }] + assert zenodo_object().add_related_identifiers().related_identifiers == [ + {"identifier": "https://github.com/somewhere", "relation": "isSupplementedBy", "scheme": "url"} + ] def test_title(self): assert zenodo_object().add_title().title == "Test title" diff --git a/tests/lib/cff_1_3_0/identifiers/sources/D_/test_apalike_object.py b/tests/lib/cff_1_3_0/identifiers/sources/D_/test_apalike_object.py index 545e6fcee..eefc91143 100644 --- a/tests/lib/cff_1_3_0/identifiers/sources/D_/test_apalike_object.py +++ b/tests/lib/cff_1_3_0/identifiers/sources/D_/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_as_string(self): actual_apalike = apalike_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "apalike.txt") diff --git a/tests/lib/cff_1_3_0/identifiers/sources/D_/test_bibtex_object.py b/tests/lib/cff_1_3_0/identifiers/sources/D_/test_bibtex_object.py index e2685a926..99183e04d 100644 --- a/tests/lib/cff_1_3_0/identifiers/sources/D_/test_bibtex_object.py +++ b/tests/lib/cff_1_3_0/identifiers/sources/D_/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_as_string(self): actual_bibtex = bibtex_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "bibtex.bib") diff --git a/tests/lib/cff_1_3_0/identifiers/sources/D_/test_codemeta_object.py b/tests/lib/cff_1_3_0/identifiers/sources/D_/test_codemeta_object.py index d0c842a9a..714063db8 100644 --- a/tests/lib/cff_1_3_0/identifiers/sources/D_/test_codemeta_object.py +++ b/tests/lib/cff_1_3_0/identifiers/sources/D_/test_codemeta_object.py @@ -18,7 +18,6 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_as_string(self): actual_codemeta = codemeta_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "codemeta.json") @@ -27,10 +26,7 @@ def test_as_string(self): assert actual_codemeta == expected_codemeta def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert codemeta_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_check_cffobj(self): codemeta_object().check_cffobj() diff --git a/tests/lib/cff_1_3_0/identifiers/sources/D_/test_endnote_object.py b/tests/lib/cff_1_3_0/identifiers/sources/D_/test_endnote_object.py index b474690a0..23300023f 100644 --- a/tests/lib/cff_1_3_0/identifiers/sources/D_/test_endnote_object.py +++ b/tests/lib/cff_1_3_0/identifiers/sources/D_/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_as_string(self): actual_endnote = endnote_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "endnote.enw") diff --git a/tests/lib/cff_1_3_0/identifiers/sources/D_/test_ris_object.py b/tests/lib/cff_1_3_0/identifiers/sources/D_/test_ris_object.py index faa405b03..d7e78ca5c 100644 --- a/tests/lib/cff_1_3_0/identifiers/sources/D_/test_ris_object.py +++ b/tests/lib/cff_1_3_0/identifiers/sources/D_/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_3_0/identifiers/sources/D_/test_schemaorg_object.py b/tests/lib/cff_1_3_0/identifiers/sources/D_/test_schemaorg_object.py index 986661b3f..d9befc611 100644 --- a/tests/lib/cff_1_3_0/identifiers/sources/D_/test_schemaorg_object.py +++ b/tests/lib/cff_1_3_0/identifiers/sources/D_/test_schemaorg_object.py @@ -18,7 +18,6 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_as_string(self): actual_schemaorg = schemaorg_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "schemaorg.json") @@ -27,10 +26,7 @@ def test_as_string(self): assert actual_schemaorg == expected_schemaorg def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_check_cffobj(self): schemaorg_object().check_cffobj() diff --git a/tests/lib/cff_1_3_0/identifiers/sources/D_/test_zenodo_object.py b/tests/lib/cff_1_3_0/identifiers/sources/D_/test_zenodo_object.py index 803e7b0fd..24214412b 100644 --- a/tests/lib/cff_1_3_0/identifiers/sources/D_/test_zenodo_object.py +++ b/tests/lib/cff_1_3_0/identifiers/sources/D_/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,11 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [ - { - "name": "Test author" - } - ] + assert zenodo_object().add_creators().creators == [{"name": "Test author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None @@ -50,11 +45,9 @@ def test_publication_date(self): assert zenodo_object().add_publication_date().publication_date is None def test_related_identifiers(self): - assert zenodo_object().add_related_identifiers().related_identifiers == [{ - "identifier": "10.0000/from-doi", - "relation": "isSupplementedBy", - "scheme": "doi" - }] + assert zenodo_object().add_related_identifiers().related_identifiers == [ + {"identifier": "10.0000/from-doi", "relation": "isSupplementedBy", "scheme": "doi"} + ] def test_title(self): assert zenodo_object().add_title().title == "Test title" diff --git a/tests/lib/cff_1_3_0/identifiers/sources/_I/test_apalike_object.py b/tests/lib/cff_1_3_0/identifiers/sources/_I/test_apalike_object.py index f07220aa7..490a0d70c 100644 --- a/tests/lib/cff_1_3_0/identifiers/sources/_I/test_apalike_object.py +++ b/tests/lib/cff_1_3_0/identifiers/sources/_I/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_as_string(self): actual_apalike = apalike_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "apalike.txt") diff --git a/tests/lib/cff_1_3_0/identifiers/sources/_I/test_bibtex_object.py b/tests/lib/cff_1_3_0/identifiers/sources/_I/test_bibtex_object.py index 45f0d1fa6..25f538b7a 100644 --- a/tests/lib/cff_1_3_0/identifiers/sources/_I/test_bibtex_object.py +++ b/tests/lib/cff_1_3_0/identifiers/sources/_I/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_as_string(self): actual_bibtex = bibtex_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "bibtex.bib") diff --git a/tests/lib/cff_1_3_0/identifiers/sources/_I/test_codemeta_object.py b/tests/lib/cff_1_3_0/identifiers/sources/_I/test_codemeta_object.py index c9e159b1d..aa1995baf 100644 --- a/tests/lib/cff_1_3_0/identifiers/sources/_I/test_codemeta_object.py +++ b/tests/lib/cff_1_3_0/identifiers/sources/_I/test_codemeta_object.py @@ -18,7 +18,6 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_as_string(self): actual_codemeta = codemeta_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "codemeta.json") @@ -27,10 +26,7 @@ def test_as_string(self): assert actual_codemeta == expected_codemeta def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert codemeta_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_check_cffobj(self): codemeta_object().check_cffobj() diff --git a/tests/lib/cff_1_3_0/identifiers/sources/_I/test_endnote_object.py b/tests/lib/cff_1_3_0/identifiers/sources/_I/test_endnote_object.py index e87cd51be..090ad3cd2 100644 --- a/tests/lib/cff_1_3_0/identifiers/sources/_I/test_endnote_object.py +++ b/tests/lib/cff_1_3_0/identifiers/sources/_I/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_as_string(self): actual_endnote = endnote_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "endnote.enw") diff --git a/tests/lib/cff_1_3_0/identifiers/sources/_I/test_ris_object.py b/tests/lib/cff_1_3_0/identifiers/sources/_I/test_ris_object.py index ac996a3ae..edd1d2b38 100644 --- a/tests/lib/cff_1_3_0/identifiers/sources/_I/test_ris_object.py +++ b/tests/lib/cff_1_3_0/identifiers/sources/_I/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_3_0/identifiers/sources/_I/test_schemaorg_object.py b/tests/lib/cff_1_3_0/identifiers/sources/_I/test_schemaorg_object.py index 152935f42..0f705e309 100644 --- a/tests/lib/cff_1_3_0/identifiers/sources/_I/test_schemaorg_object.py +++ b/tests/lib/cff_1_3_0/identifiers/sources/_I/test_schemaorg_object.py @@ -18,7 +18,6 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_as_string(self): actual_schemaorg = schemaorg_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "schemaorg.json") @@ -27,10 +26,7 @@ def test_as_string(self): assert actual_schemaorg == expected_schemaorg def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_check_cffobj(self): schemaorg_object().check_cffobj() diff --git a/tests/lib/cff_1_3_0/identifiers/sources/_I/test_zenodo_object.py b/tests/lib/cff_1_3_0/identifiers/sources/_I/test_zenodo_object.py index 4d02b0c5d..1e26041b4 100644 --- a/tests/lib/cff_1_3_0/identifiers/sources/_I/test_zenodo_object.py +++ b/tests/lib/cff_1_3_0/identifiers/sources/_I/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,11 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [ - { - "name": "Test author" - } - ] + assert zenodo_object().add_creators().creators == [{"name": "Test author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None @@ -50,11 +45,9 @@ def test_publication_date(self): assert zenodo_object().add_publication_date().publication_date is None def test_related_identifiers(self): - assert zenodo_object().add_related_identifiers().related_identifiers == [{ - "identifier": "10.0000/from-identifiers", - "relation": "isSupplementedBy", - "scheme": "doi" - }] + assert zenodo_object().add_related_identifiers().related_identifiers == [ + {"identifier": "10.0000/from-identifiers", "relation": "isSupplementedBy", "scheme": "doi"} + ] def test_title(self): assert zenodo_object().add_title().title == "Test title" diff --git a/tests/lib/cff_1_3_0/identifiers/sources/__/test_apalike_object.py b/tests/lib/cff_1_3_0/identifiers/sources/__/test_apalike_object.py index 4f58a9cc1..e7086a230 100644 --- a/tests/lib/cff_1_3_0/identifiers/sources/__/test_apalike_object.py +++ b/tests/lib/cff_1_3_0/identifiers/sources/__/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_as_string(self): actual_apalike = apalike_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "apalike.txt") diff --git a/tests/lib/cff_1_3_0/identifiers/sources/__/test_bibtex_object.py b/tests/lib/cff_1_3_0/identifiers/sources/__/test_bibtex_object.py index 15fd81235..49f6fcd4c 100644 --- a/tests/lib/cff_1_3_0/identifiers/sources/__/test_bibtex_object.py +++ b/tests/lib/cff_1_3_0/identifiers/sources/__/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_as_string(self): actual_bibtex = bibtex_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "bibtex.bib") diff --git a/tests/lib/cff_1_3_0/identifiers/sources/__/test_codemeta_object.py b/tests/lib/cff_1_3_0/identifiers/sources/__/test_codemeta_object.py index 1ac741149..b6ad05351 100644 --- a/tests/lib/cff_1_3_0/identifiers/sources/__/test_codemeta_object.py +++ b/tests/lib/cff_1_3_0/identifiers/sources/__/test_codemeta_object.py @@ -18,7 +18,6 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_as_string(self): actual_codemeta = codemeta_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "codemeta.json") @@ -27,10 +26,7 @@ def test_as_string(self): assert actual_codemeta == expected_codemeta def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert codemeta_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_check_cffobj(self): codemeta_object().check_cffobj() diff --git a/tests/lib/cff_1_3_0/identifiers/sources/__/test_endnote_object.py b/tests/lib/cff_1_3_0/identifiers/sources/__/test_endnote_object.py index 13c66d079..f77810b74 100644 --- a/tests/lib/cff_1_3_0/identifiers/sources/__/test_endnote_object.py +++ b/tests/lib/cff_1_3_0/identifiers/sources/__/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_as_string(self): actual_endnote = endnote_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "endnote.enw") diff --git a/tests/lib/cff_1_3_0/identifiers/sources/__/test_ris_object.py b/tests/lib/cff_1_3_0/identifiers/sources/__/test_ris_object.py index d09cf4240..864b4c661 100644 --- a/tests/lib/cff_1_3_0/identifiers/sources/__/test_ris_object.py +++ b/tests/lib/cff_1_3_0/identifiers/sources/__/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_3_0/identifiers/sources/__/test_schemaorg_object.py b/tests/lib/cff_1_3_0/identifiers/sources/__/test_schemaorg_object.py index 7654e3b21..c66ae7fbc 100644 --- a/tests/lib/cff_1_3_0/identifiers/sources/__/test_schemaorg_object.py +++ b/tests/lib/cff_1_3_0/identifiers/sources/__/test_schemaorg_object.py @@ -18,7 +18,6 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_as_string(self): actual_schemaorg = schemaorg_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "schemaorg.json") @@ -27,10 +26,7 @@ def test_as_string(self): assert actual_schemaorg == expected_schemaorg def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_check_cffobj(self): schemaorg_object().check_cffobj() diff --git a/tests/lib/cff_1_3_0/identifiers/sources/__/test_zenodo_object.py b/tests/lib/cff_1_3_0/identifiers/sources/__/test_zenodo_object.py index 93b733d08..e9c0e136c 100644 --- a/tests/lib/cff_1_3_0/identifiers/sources/__/test_zenodo_object.py +++ b/tests/lib/cff_1_3_0/identifiers/sources/__/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,11 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [ - { - "name": "Test author" - } - ] + assert zenodo_object().add_creators().creators == [{"name": "Test author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None diff --git a/tests/lib/cff_1_3_0/types/dataset/test_schemaorg_object.py b/tests/lib/cff_1_3_0/types/dataset/test_schemaorg_object.py index fce5e6a08..d46a69bf7 100644 --- a/tests/lib/cff_1_3_0/types/dataset/test_schemaorg_object.py +++ b/tests/lib/cff_1_3_0/types/dataset/test_schemaorg_object.py @@ -18,7 +18,6 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_as_string(self): actual_schemaorg = schemaorg_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "schemaorg.json") @@ -27,10 +26,7 @@ def test_as_string(self): assert actual_schemaorg == expected_schemaorg def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "The name" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "The name"}] def test_check_cffobj(self): schemaorg_object().check_cffobj() diff --git a/tests/lib/cff_1_3_0/types/dataset/test_zenodo_object.py b/tests/lib/cff_1_3_0/types/dataset/test_zenodo_object.py index ec5c3a3d9..13880f0c3 100644 --- a/tests/lib/cff_1_3_0/types/dataset/test_zenodo_object.py +++ b/tests/lib/cff_1_3_0/types/dataset/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,11 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [ - { - "name": "The name" - } - ] + assert zenodo_object().add_creators().creators == [{"name": "The name"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None diff --git a/tests/lib/cff_1_3_0/types/none/test_schemaorg_object.py b/tests/lib/cff_1_3_0/types/none/test_schemaorg_object.py index 78967ee76..a3324e31a 100644 --- a/tests/lib/cff_1_3_0/types/none/test_schemaorg_object.py +++ b/tests/lib/cff_1_3_0/types/none/test_schemaorg_object.py @@ -18,7 +18,6 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_as_string(self): actual_schemaorg = schemaorg_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "schemaorg.json") @@ -27,10 +26,7 @@ def test_as_string(self): assert actual_schemaorg == expected_schemaorg def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "The name" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "The name"}] def test_check_cffobj(self): schemaorg_object().check_cffobj() diff --git a/tests/lib/cff_1_3_0/types/none/test_zenodo_object.py b/tests/lib/cff_1_3_0/types/none/test_zenodo_object.py index bc6acf691..16e80934b 100644 --- a/tests/lib/cff_1_3_0/types/none/test_zenodo_object.py +++ b/tests/lib/cff_1_3_0/types/none/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,11 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [ - { - "name": "The name" - } - ] + assert zenodo_object().add_creators().creators == [{"name": "The name"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None diff --git a/tests/lib/cff_1_3_0/types/software/test_schemaorg_object.py b/tests/lib/cff_1_3_0/types/software/test_schemaorg_object.py index 78967ee76..a3324e31a 100644 --- a/tests/lib/cff_1_3_0/types/software/test_schemaorg_object.py +++ b/tests/lib/cff_1_3_0/types/software/test_schemaorg_object.py @@ -18,7 +18,6 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_as_string(self): actual_schemaorg = schemaorg_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), "schemaorg.json") @@ -27,10 +26,7 @@ def test_as_string(self): assert actual_schemaorg == expected_schemaorg def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "The name" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "The name"}] def test_check_cffobj(self): schemaorg_object().check_cffobj() diff --git a/tests/lib/cff_1_3_0/types/software/test_zenodo_object.py b/tests/lib/cff_1_3_0/types/software/test_zenodo_object.py index bc6acf691..16e80934b 100644 --- a/tests/lib/cff_1_3_0/types/software/test_zenodo_object.py +++ b/tests/lib/cff_1_3_0/types/software/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,11 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [ - { - "name": "The name" - } - ] + assert zenodo_object().add_creators().creators == [{"name": "The name"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None diff --git a/tests/lib/cff_1_3_0/urls/IRACU/test_apalike_object.py b/tests/lib/cff_1_3_0/urls/IRACU/test_apalike_object.py index 45c3cce95..ad15d13f7 100644 --- a/tests/lib/cff_1_3_0/urls/IRACU/test_apalike_object.py +++ b/tests/lib/cff_1_3_0/urls/IRACU/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_author(self): assert apalike_object().add_author().author == "Test author" diff --git a/tests/lib/cff_1_3_0/urls/IRACU/test_bibtex_object.py b/tests/lib/cff_1_3_0/urls/IRACU/test_bibtex_object.py index fb4020fb6..db4384fab 100644 --- a/tests/lib/cff_1_3_0/urls/IRACU/test_bibtex_object.py +++ b/tests/lib/cff_1_3_0/urls/IRACU/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_author(self): assert bibtex_object().add_author().author == "author = {{Test author}}" diff --git a/tests/lib/cff_1_3_0/urls/IRACU/test_codemeta_object.py b/tests/lib/cff_1_3_0/urls/IRACU/test_codemeta_object.py index 62fa2ee5e..3d438694c 100644 --- a/tests/lib/cff_1_3_0/urls/IRACU/test_codemeta_object.py +++ b/tests/lib/cff_1_3_0/urls/IRACU/test_codemeta_object.py @@ -18,16 +18,12 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_check_cffobj(self): codemeta_object().check_cffobj() # doesn't need an assert def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert codemeta_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert codemeta_object().add_urls().code_repository == "https://github.com/the-url-from-repository-code" diff --git a/tests/lib/cff_1_3_0/urls/IRACU/test_endnote_object.py b/tests/lib/cff_1_3_0/urls/IRACU/test_endnote_object.py index 65c7d6955..58e42e55b 100644 --- a/tests/lib/cff_1_3_0/urls/IRACU/test_endnote_object.py +++ b/tests/lib/cff_1_3_0/urls/IRACU/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_check_cffobj(self): endnote_object().check_cffobj() # doesn't need an assert diff --git a/tests/lib/cff_1_3_0/urls/IRACU/test_ris_object.py b/tests/lib/cff_1_3_0/urls/IRACU/test_ris_object.py index 714e1457a..ab603020a 100644 --- a/tests/lib/cff_1_3_0/urls/IRACU/test_ris_object.py +++ b/tests/lib/cff_1_3_0/urls/IRACU/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_3_0/urls/IRACU/test_schemaorg_object.py b/tests/lib/cff_1_3_0/urls/IRACU/test_schemaorg_object.py index a567e9178..cbd8fce93 100644 --- a/tests/lib/cff_1_3_0/urls/IRACU/test_schemaorg_object.py +++ b/tests/lib/cff_1_3_0/urls/IRACU/test_schemaorg_object.py @@ -18,16 +18,12 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_check_cffobj(self): schemaorg_object().check_cffobj() # doesn't need an assert def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert schemaorg_object().add_urls().code_repository == "https://github.com/the-url-from-repository-code" diff --git a/tests/lib/cff_1_3_0/urls/IRACU/test_zenodo_object.py b/tests/lib/cff_1_3_0/urls/IRACU/test_zenodo_object.py index 44d90bed7..7eb803f45 100644 --- a/tests/lib/cff_1_3_0/urls/IRACU/test_zenodo_object.py +++ b/tests/lib/cff_1_3_0/urls/IRACU/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,9 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [{ - "name": "Test author" - }] + assert zenodo_object().add_creators().creators == [{"name": "Test author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None @@ -48,27 +45,29 @@ def test_publication_date(self): assert zenodo_object().add_publication_date().publication_date is None def test_related_identifiers(self): - assert zenodo_object().add_related_identifiers().related_identifiers == [{ - "identifier": "https://github.com/the-url-from-identifiers", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-repository", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-repository-artifact", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-repository-code", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-url", - "relation": "isSupplementedBy", - "scheme": "url" - }] + assert zenodo_object().add_related_identifiers().related_identifiers == [ + { + "identifier": "https://github.com/the-url-from-identifiers", + "relation": "isSupplementedBy", + "scheme": "url", + }, + { + "identifier": "https://github.com/the-url-from-repository", + "relation": "isSupplementedBy", + "scheme": "url", + }, + { + "identifier": "https://github.com/the-url-from-repository-artifact", + "relation": "isSupplementedBy", + "scheme": "url", + }, + { + "identifier": "https://github.com/the-url-from-repository-code", + "relation": "isSupplementedBy", + "scheme": "url", + }, + {"identifier": "https://github.com/the-url-from-url", "relation": "isSupplementedBy", "scheme": "url"}, + ] def test_title(self): assert zenodo_object().add_title().title == "Test title" diff --git a/tests/lib/cff_1_3_0/urls/IRAC_/test_apalike_object.py b/tests/lib/cff_1_3_0/urls/IRAC_/test_apalike_object.py index 45c3cce95..ad15d13f7 100644 --- a/tests/lib/cff_1_3_0/urls/IRAC_/test_apalike_object.py +++ b/tests/lib/cff_1_3_0/urls/IRAC_/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_author(self): assert apalike_object().add_author().author == "Test author" diff --git a/tests/lib/cff_1_3_0/urls/IRAC_/test_bibtex_object.py b/tests/lib/cff_1_3_0/urls/IRAC_/test_bibtex_object.py index fb4020fb6..db4384fab 100644 --- a/tests/lib/cff_1_3_0/urls/IRAC_/test_bibtex_object.py +++ b/tests/lib/cff_1_3_0/urls/IRAC_/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_author(self): assert bibtex_object().add_author().author == "author = {{Test author}}" diff --git a/tests/lib/cff_1_3_0/urls/IRAC_/test_codemeta_object.py b/tests/lib/cff_1_3_0/urls/IRAC_/test_codemeta_object.py index 62fa2ee5e..3d438694c 100644 --- a/tests/lib/cff_1_3_0/urls/IRAC_/test_codemeta_object.py +++ b/tests/lib/cff_1_3_0/urls/IRAC_/test_codemeta_object.py @@ -18,16 +18,12 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_check_cffobj(self): codemeta_object().check_cffobj() # doesn't need an assert def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert codemeta_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert codemeta_object().add_urls().code_repository == "https://github.com/the-url-from-repository-code" diff --git a/tests/lib/cff_1_3_0/urls/IRAC_/test_endnote_object.py b/tests/lib/cff_1_3_0/urls/IRAC_/test_endnote_object.py index 65c7d6955..58e42e55b 100644 --- a/tests/lib/cff_1_3_0/urls/IRAC_/test_endnote_object.py +++ b/tests/lib/cff_1_3_0/urls/IRAC_/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_check_cffobj(self): endnote_object().check_cffobj() # doesn't need an assert diff --git a/tests/lib/cff_1_3_0/urls/IRAC_/test_ris_object.py b/tests/lib/cff_1_3_0/urls/IRAC_/test_ris_object.py index 714e1457a..ab603020a 100644 --- a/tests/lib/cff_1_3_0/urls/IRAC_/test_ris_object.py +++ b/tests/lib/cff_1_3_0/urls/IRAC_/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_3_0/urls/IRAC_/test_schemaorg_object.py b/tests/lib/cff_1_3_0/urls/IRAC_/test_schemaorg_object.py index a567e9178..cbd8fce93 100644 --- a/tests/lib/cff_1_3_0/urls/IRAC_/test_schemaorg_object.py +++ b/tests/lib/cff_1_3_0/urls/IRAC_/test_schemaorg_object.py @@ -18,16 +18,12 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_check_cffobj(self): schemaorg_object().check_cffobj() # doesn't need an assert def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert schemaorg_object().add_urls().code_repository == "https://github.com/the-url-from-repository-code" diff --git a/tests/lib/cff_1_3_0/urls/IRAC_/test_zenodo_object.py b/tests/lib/cff_1_3_0/urls/IRAC_/test_zenodo_object.py index 0e92926d4..05f2a7aca 100644 --- a/tests/lib/cff_1_3_0/urls/IRAC_/test_zenodo_object.py +++ b/tests/lib/cff_1_3_0/urls/IRAC_/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,9 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [{ - "name": "Test author" - }] + assert zenodo_object().add_creators().creators == [{"name": "Test author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None @@ -48,23 +45,28 @@ def test_publication_date(self): assert zenodo_object().add_publication_date().publication_date is None def test_related_identifiers(self): - assert zenodo_object().add_related_identifiers().related_identifiers == [{ - "identifier": "https://github.com/the-url-from-identifiers", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-repository", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-repository-artifact", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-repository-code", - "relation": "isSupplementedBy", - "scheme": "url" - }] + assert zenodo_object().add_related_identifiers().related_identifiers == [ + { + "identifier": "https://github.com/the-url-from-identifiers", + "relation": "isSupplementedBy", + "scheme": "url", + }, + { + "identifier": "https://github.com/the-url-from-repository", + "relation": "isSupplementedBy", + "scheme": "url", + }, + { + "identifier": "https://github.com/the-url-from-repository-artifact", + "relation": "isSupplementedBy", + "scheme": "url", + }, + { + "identifier": "https://github.com/the-url-from-repository-code", + "relation": "isSupplementedBy", + "scheme": "url", + }, + ] def test_title(self): assert zenodo_object().add_title().title == "Test title" diff --git a/tests/lib/cff_1_3_0/urls/IRA_U/test_apalike_object.py b/tests/lib/cff_1_3_0/urls/IRA_U/test_apalike_object.py index 45c3cce95..ad15d13f7 100644 --- a/tests/lib/cff_1_3_0/urls/IRA_U/test_apalike_object.py +++ b/tests/lib/cff_1_3_0/urls/IRA_U/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_author(self): assert apalike_object().add_author().author == "Test author" diff --git a/tests/lib/cff_1_3_0/urls/IRA_U/test_bibtex_object.py b/tests/lib/cff_1_3_0/urls/IRA_U/test_bibtex_object.py index fb4020fb6..db4384fab 100644 --- a/tests/lib/cff_1_3_0/urls/IRA_U/test_bibtex_object.py +++ b/tests/lib/cff_1_3_0/urls/IRA_U/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_author(self): assert bibtex_object().add_author().author == "author = {{Test author}}" diff --git a/tests/lib/cff_1_3_0/urls/IRA_U/test_codemeta_object.py b/tests/lib/cff_1_3_0/urls/IRA_U/test_codemeta_object.py index 9e3c68836..a987578bd 100644 --- a/tests/lib/cff_1_3_0/urls/IRA_U/test_codemeta_object.py +++ b/tests/lib/cff_1_3_0/urls/IRA_U/test_codemeta_object.py @@ -18,16 +18,12 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_check_cffobj(self): codemeta_object().check_cffobj() # doesn't need an assert def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert codemeta_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert codemeta_object().add_urls().code_repository == "https://github.com/the-url-from-repository" diff --git a/tests/lib/cff_1_3_0/urls/IRA_U/test_endnote_object.py b/tests/lib/cff_1_3_0/urls/IRA_U/test_endnote_object.py index 65c7d6955..58e42e55b 100644 --- a/tests/lib/cff_1_3_0/urls/IRA_U/test_endnote_object.py +++ b/tests/lib/cff_1_3_0/urls/IRA_U/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_check_cffobj(self): endnote_object().check_cffobj() # doesn't need an assert diff --git a/tests/lib/cff_1_3_0/urls/IRA_U/test_ris_object.py b/tests/lib/cff_1_3_0/urls/IRA_U/test_ris_object.py index 714e1457a..ab603020a 100644 --- a/tests/lib/cff_1_3_0/urls/IRA_U/test_ris_object.py +++ b/tests/lib/cff_1_3_0/urls/IRA_U/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_3_0/urls/IRA_U/test_schemaorg_object.py b/tests/lib/cff_1_3_0/urls/IRA_U/test_schemaorg_object.py index 3c257536a..15df14a4a 100644 --- a/tests/lib/cff_1_3_0/urls/IRA_U/test_schemaorg_object.py +++ b/tests/lib/cff_1_3_0/urls/IRA_U/test_schemaorg_object.py @@ -18,16 +18,12 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_check_cffobj(self): schemaorg_object().check_cffobj() # doesn't need an assert def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert schemaorg_object().add_urls().code_repository == "https://github.com/the-url-from-repository" diff --git a/tests/lib/cff_1_3_0/urls/IRA_U/test_zenodo_object.py b/tests/lib/cff_1_3_0/urls/IRA_U/test_zenodo_object.py index 2116e6e2d..5c5295fa6 100644 --- a/tests/lib/cff_1_3_0/urls/IRA_U/test_zenodo_object.py +++ b/tests/lib/cff_1_3_0/urls/IRA_U/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,9 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [{ - "name": "Test author" - }] + assert zenodo_object().add_creators().creators == [{"name": "Test author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None @@ -48,23 +45,24 @@ def test_publication_date(self): assert zenodo_object().add_publication_date().publication_date is None def test_related_identifiers(self): - assert zenodo_object().add_related_identifiers().related_identifiers == [{ - "identifier": "https://github.com/the-url-from-identifiers", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-repository", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-repository-artifact", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-url", - "relation": "isSupplementedBy", - "scheme": "url" - }] + assert zenodo_object().add_related_identifiers().related_identifiers == [ + { + "identifier": "https://github.com/the-url-from-identifiers", + "relation": "isSupplementedBy", + "scheme": "url", + }, + { + "identifier": "https://github.com/the-url-from-repository", + "relation": "isSupplementedBy", + "scheme": "url", + }, + { + "identifier": "https://github.com/the-url-from-repository-artifact", + "relation": "isSupplementedBy", + "scheme": "url", + }, + {"identifier": "https://github.com/the-url-from-url", "relation": "isSupplementedBy", "scheme": "url"}, + ] def test_title(self): assert zenodo_object().add_title().title == "Test title" diff --git a/tests/lib/cff_1_3_0/urls/IRA__/test_apalike_object.py b/tests/lib/cff_1_3_0/urls/IRA__/test_apalike_object.py index 45c3cce95..ad15d13f7 100644 --- a/tests/lib/cff_1_3_0/urls/IRA__/test_apalike_object.py +++ b/tests/lib/cff_1_3_0/urls/IRA__/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_author(self): assert apalike_object().add_author().author == "Test author" diff --git a/tests/lib/cff_1_3_0/urls/IRA__/test_bibtex_object.py b/tests/lib/cff_1_3_0/urls/IRA__/test_bibtex_object.py index fb4020fb6..db4384fab 100644 --- a/tests/lib/cff_1_3_0/urls/IRA__/test_bibtex_object.py +++ b/tests/lib/cff_1_3_0/urls/IRA__/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_author(self): assert bibtex_object().add_author().author == "author = {{Test author}}" diff --git a/tests/lib/cff_1_3_0/urls/IRA__/test_codemeta_object.py b/tests/lib/cff_1_3_0/urls/IRA__/test_codemeta_object.py index 9e3c68836..a987578bd 100644 --- a/tests/lib/cff_1_3_0/urls/IRA__/test_codemeta_object.py +++ b/tests/lib/cff_1_3_0/urls/IRA__/test_codemeta_object.py @@ -18,16 +18,12 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_check_cffobj(self): codemeta_object().check_cffobj() # doesn't need an assert def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert codemeta_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert codemeta_object().add_urls().code_repository == "https://github.com/the-url-from-repository" diff --git a/tests/lib/cff_1_3_0/urls/IRA__/test_endnote_object.py b/tests/lib/cff_1_3_0/urls/IRA__/test_endnote_object.py index 65c7d6955..58e42e55b 100644 --- a/tests/lib/cff_1_3_0/urls/IRA__/test_endnote_object.py +++ b/tests/lib/cff_1_3_0/urls/IRA__/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_check_cffobj(self): endnote_object().check_cffobj() # doesn't need an assert diff --git a/tests/lib/cff_1_3_0/urls/IRA__/test_ris_object.py b/tests/lib/cff_1_3_0/urls/IRA__/test_ris_object.py index 714e1457a..ab603020a 100644 --- a/tests/lib/cff_1_3_0/urls/IRA__/test_ris_object.py +++ b/tests/lib/cff_1_3_0/urls/IRA__/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_3_0/urls/IRA__/test_schemaorg_object.py b/tests/lib/cff_1_3_0/urls/IRA__/test_schemaorg_object.py index 3c257536a..15df14a4a 100644 --- a/tests/lib/cff_1_3_0/urls/IRA__/test_schemaorg_object.py +++ b/tests/lib/cff_1_3_0/urls/IRA__/test_schemaorg_object.py @@ -18,16 +18,12 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_check_cffobj(self): schemaorg_object().check_cffobj() # doesn't need an assert def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert schemaorg_object().add_urls().code_repository == "https://github.com/the-url-from-repository" diff --git a/tests/lib/cff_1_3_0/urls/IRA__/test_zenodo_object.py b/tests/lib/cff_1_3_0/urls/IRA__/test_zenodo_object.py index 7c0f5c4c8..b5fa3aff9 100644 --- a/tests/lib/cff_1_3_0/urls/IRA__/test_zenodo_object.py +++ b/tests/lib/cff_1_3_0/urls/IRA__/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,9 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [{ - "name": "Test author" - }] + assert zenodo_object().add_creators().creators == [{"name": "Test author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None @@ -48,19 +45,23 @@ def test_publication_date(self): assert zenodo_object().add_publication_date().publication_date is None def test_related_identifiers(self): - assert zenodo_object().add_related_identifiers().related_identifiers == [{ - "identifier": "https://github.com/the-url-from-identifiers", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-repository", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-repository-artifact", - "relation": "isSupplementedBy", - "scheme": "url" - }] + assert zenodo_object().add_related_identifiers().related_identifiers == [ + { + "identifier": "https://github.com/the-url-from-identifiers", + "relation": "isSupplementedBy", + "scheme": "url", + }, + { + "identifier": "https://github.com/the-url-from-repository", + "relation": "isSupplementedBy", + "scheme": "url", + }, + { + "identifier": "https://github.com/the-url-from-repository-artifact", + "relation": "isSupplementedBy", + "scheme": "url", + }, + ] def test_title(self): assert zenodo_object().add_title().title == "Test title" diff --git a/tests/lib/cff_1_3_0/urls/IR_CU/test_apalike_object.py b/tests/lib/cff_1_3_0/urls/IR_CU/test_apalike_object.py index 45c3cce95..ad15d13f7 100644 --- a/tests/lib/cff_1_3_0/urls/IR_CU/test_apalike_object.py +++ b/tests/lib/cff_1_3_0/urls/IR_CU/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_author(self): assert apalike_object().add_author().author == "Test author" diff --git a/tests/lib/cff_1_3_0/urls/IR_CU/test_bibtex_object.py b/tests/lib/cff_1_3_0/urls/IR_CU/test_bibtex_object.py index fb4020fb6..db4384fab 100644 --- a/tests/lib/cff_1_3_0/urls/IR_CU/test_bibtex_object.py +++ b/tests/lib/cff_1_3_0/urls/IR_CU/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_author(self): assert bibtex_object().add_author().author == "author = {{Test author}}" diff --git a/tests/lib/cff_1_3_0/urls/IR_CU/test_codemeta_object.py b/tests/lib/cff_1_3_0/urls/IR_CU/test_codemeta_object.py index 62fa2ee5e..3d438694c 100644 --- a/tests/lib/cff_1_3_0/urls/IR_CU/test_codemeta_object.py +++ b/tests/lib/cff_1_3_0/urls/IR_CU/test_codemeta_object.py @@ -18,16 +18,12 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_check_cffobj(self): codemeta_object().check_cffobj() # doesn't need an assert def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert codemeta_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert codemeta_object().add_urls().code_repository == "https://github.com/the-url-from-repository-code" diff --git a/tests/lib/cff_1_3_0/urls/IR_CU/test_endnote_object.py b/tests/lib/cff_1_3_0/urls/IR_CU/test_endnote_object.py index 65c7d6955..58e42e55b 100644 --- a/tests/lib/cff_1_3_0/urls/IR_CU/test_endnote_object.py +++ b/tests/lib/cff_1_3_0/urls/IR_CU/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_check_cffobj(self): endnote_object().check_cffobj() # doesn't need an assert diff --git a/tests/lib/cff_1_3_0/urls/IR_CU/test_ris_object.py b/tests/lib/cff_1_3_0/urls/IR_CU/test_ris_object.py index 714e1457a..ab603020a 100644 --- a/tests/lib/cff_1_3_0/urls/IR_CU/test_ris_object.py +++ b/tests/lib/cff_1_3_0/urls/IR_CU/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_3_0/urls/IR_CU/test_schemaorg_object.py b/tests/lib/cff_1_3_0/urls/IR_CU/test_schemaorg_object.py index a567e9178..cbd8fce93 100644 --- a/tests/lib/cff_1_3_0/urls/IR_CU/test_schemaorg_object.py +++ b/tests/lib/cff_1_3_0/urls/IR_CU/test_schemaorg_object.py @@ -18,16 +18,12 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_check_cffobj(self): schemaorg_object().check_cffobj() # doesn't need an assert def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert schemaorg_object().add_urls().code_repository == "https://github.com/the-url-from-repository-code" diff --git a/tests/lib/cff_1_3_0/urls/IR_CU/test_zenodo_object.py b/tests/lib/cff_1_3_0/urls/IR_CU/test_zenodo_object.py index 6753d3082..878964392 100644 --- a/tests/lib/cff_1_3_0/urls/IR_CU/test_zenodo_object.py +++ b/tests/lib/cff_1_3_0/urls/IR_CU/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,9 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [{ - "name": "Test author" - }] + assert zenodo_object().add_creators().creators == [{"name": "Test author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None @@ -48,23 +45,24 @@ def test_publication_date(self): assert zenodo_object().add_publication_date().publication_date is None def test_related_identifiers(self): - assert zenodo_object().add_related_identifiers().related_identifiers == [{ - "identifier": "https://github.com/the-url-from-identifiers", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-repository", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-repository-code", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-url", - "relation": "isSupplementedBy", - "scheme": "url" - }] + assert zenodo_object().add_related_identifiers().related_identifiers == [ + { + "identifier": "https://github.com/the-url-from-identifiers", + "relation": "isSupplementedBy", + "scheme": "url", + }, + { + "identifier": "https://github.com/the-url-from-repository", + "relation": "isSupplementedBy", + "scheme": "url", + }, + { + "identifier": "https://github.com/the-url-from-repository-code", + "relation": "isSupplementedBy", + "scheme": "url", + }, + {"identifier": "https://github.com/the-url-from-url", "relation": "isSupplementedBy", "scheme": "url"}, + ] def test_title(self): assert zenodo_object().add_title().title == "Test title" diff --git a/tests/lib/cff_1_3_0/urls/IR_C_/test_apalike_object.py b/tests/lib/cff_1_3_0/urls/IR_C_/test_apalike_object.py index 45c3cce95..ad15d13f7 100644 --- a/tests/lib/cff_1_3_0/urls/IR_C_/test_apalike_object.py +++ b/tests/lib/cff_1_3_0/urls/IR_C_/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_author(self): assert apalike_object().add_author().author == "Test author" diff --git a/tests/lib/cff_1_3_0/urls/IR_C_/test_bibtex_object.py b/tests/lib/cff_1_3_0/urls/IR_C_/test_bibtex_object.py index fb4020fb6..db4384fab 100644 --- a/tests/lib/cff_1_3_0/urls/IR_C_/test_bibtex_object.py +++ b/tests/lib/cff_1_3_0/urls/IR_C_/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_author(self): assert bibtex_object().add_author().author == "author = {{Test author}}" diff --git a/tests/lib/cff_1_3_0/urls/IR_C_/test_codemeta_object.py b/tests/lib/cff_1_3_0/urls/IR_C_/test_codemeta_object.py index 62fa2ee5e..3d438694c 100644 --- a/tests/lib/cff_1_3_0/urls/IR_C_/test_codemeta_object.py +++ b/tests/lib/cff_1_3_0/urls/IR_C_/test_codemeta_object.py @@ -18,16 +18,12 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_check_cffobj(self): codemeta_object().check_cffobj() # doesn't need an assert def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert codemeta_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert codemeta_object().add_urls().code_repository == "https://github.com/the-url-from-repository-code" diff --git a/tests/lib/cff_1_3_0/urls/IR_C_/test_endnote_object.py b/tests/lib/cff_1_3_0/urls/IR_C_/test_endnote_object.py index 65c7d6955..58e42e55b 100644 --- a/tests/lib/cff_1_3_0/urls/IR_C_/test_endnote_object.py +++ b/tests/lib/cff_1_3_0/urls/IR_C_/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_check_cffobj(self): endnote_object().check_cffobj() # doesn't need an assert diff --git a/tests/lib/cff_1_3_0/urls/IR_C_/test_ris_object.py b/tests/lib/cff_1_3_0/urls/IR_C_/test_ris_object.py index 714e1457a..ab603020a 100644 --- a/tests/lib/cff_1_3_0/urls/IR_C_/test_ris_object.py +++ b/tests/lib/cff_1_3_0/urls/IR_C_/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_3_0/urls/IR_C_/test_schemaorg_object.py b/tests/lib/cff_1_3_0/urls/IR_C_/test_schemaorg_object.py index a567e9178..cbd8fce93 100644 --- a/tests/lib/cff_1_3_0/urls/IR_C_/test_schemaorg_object.py +++ b/tests/lib/cff_1_3_0/urls/IR_C_/test_schemaorg_object.py @@ -18,16 +18,12 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_check_cffobj(self): schemaorg_object().check_cffobj() # doesn't need an assert def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert schemaorg_object().add_urls().code_repository == "https://github.com/the-url-from-repository-code" diff --git a/tests/lib/cff_1_3_0/urls/IR_C_/test_zenodo_object.py b/tests/lib/cff_1_3_0/urls/IR_C_/test_zenodo_object.py index 0d7b986b9..a1a753bec 100644 --- a/tests/lib/cff_1_3_0/urls/IR_C_/test_zenodo_object.py +++ b/tests/lib/cff_1_3_0/urls/IR_C_/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,9 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [{ - "name": "Test author" - }] + assert zenodo_object().add_creators().creators == [{"name": "Test author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None @@ -48,19 +45,23 @@ def test_publication_date(self): assert zenodo_object().add_publication_date().publication_date is None def test_related_identifiers(self): - assert zenodo_object().add_related_identifiers().related_identifiers == [{ - "identifier": "https://github.com/the-url-from-identifiers", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-repository", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-repository-code", - "relation": "isSupplementedBy", - "scheme": "url" - }] + assert zenodo_object().add_related_identifiers().related_identifiers == [ + { + "identifier": "https://github.com/the-url-from-identifiers", + "relation": "isSupplementedBy", + "scheme": "url", + }, + { + "identifier": "https://github.com/the-url-from-repository", + "relation": "isSupplementedBy", + "scheme": "url", + }, + { + "identifier": "https://github.com/the-url-from-repository-code", + "relation": "isSupplementedBy", + "scheme": "url", + }, + ] def test_title(self): assert zenodo_object().add_title().title == "Test title" diff --git a/tests/lib/cff_1_3_0/urls/IR__U/test_apalike_object.py b/tests/lib/cff_1_3_0/urls/IR__U/test_apalike_object.py index 45c3cce95..ad15d13f7 100644 --- a/tests/lib/cff_1_3_0/urls/IR__U/test_apalike_object.py +++ b/tests/lib/cff_1_3_0/urls/IR__U/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_author(self): assert apalike_object().add_author().author == "Test author" diff --git a/tests/lib/cff_1_3_0/urls/IR__U/test_bibtex_object.py b/tests/lib/cff_1_3_0/urls/IR__U/test_bibtex_object.py index fb4020fb6..db4384fab 100644 --- a/tests/lib/cff_1_3_0/urls/IR__U/test_bibtex_object.py +++ b/tests/lib/cff_1_3_0/urls/IR__U/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_author(self): assert bibtex_object().add_author().author == "author = {{Test author}}" diff --git a/tests/lib/cff_1_3_0/urls/IR__U/test_codemeta_object.py b/tests/lib/cff_1_3_0/urls/IR__U/test_codemeta_object.py index 9e3c68836..a987578bd 100644 --- a/tests/lib/cff_1_3_0/urls/IR__U/test_codemeta_object.py +++ b/tests/lib/cff_1_3_0/urls/IR__U/test_codemeta_object.py @@ -18,16 +18,12 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_check_cffobj(self): codemeta_object().check_cffobj() # doesn't need an assert def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert codemeta_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert codemeta_object().add_urls().code_repository == "https://github.com/the-url-from-repository" diff --git a/tests/lib/cff_1_3_0/urls/IR__U/test_endnote_object.py b/tests/lib/cff_1_3_0/urls/IR__U/test_endnote_object.py index 65c7d6955..58e42e55b 100644 --- a/tests/lib/cff_1_3_0/urls/IR__U/test_endnote_object.py +++ b/tests/lib/cff_1_3_0/urls/IR__U/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_check_cffobj(self): endnote_object().check_cffobj() # doesn't need an assert diff --git a/tests/lib/cff_1_3_0/urls/IR__U/test_ris_object.py b/tests/lib/cff_1_3_0/urls/IR__U/test_ris_object.py index 714e1457a..ab603020a 100644 --- a/tests/lib/cff_1_3_0/urls/IR__U/test_ris_object.py +++ b/tests/lib/cff_1_3_0/urls/IR__U/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_3_0/urls/IR__U/test_schemaorg_object.py b/tests/lib/cff_1_3_0/urls/IR__U/test_schemaorg_object.py index 3c257536a..15df14a4a 100644 --- a/tests/lib/cff_1_3_0/urls/IR__U/test_schemaorg_object.py +++ b/tests/lib/cff_1_3_0/urls/IR__U/test_schemaorg_object.py @@ -18,16 +18,12 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_check_cffobj(self): schemaorg_object().check_cffobj() # doesn't need an assert def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert schemaorg_object().add_urls().code_repository == "https://github.com/the-url-from-repository" diff --git a/tests/lib/cff_1_3_0/urls/IR__U/test_zenodo_object.py b/tests/lib/cff_1_3_0/urls/IR__U/test_zenodo_object.py index 7751e2baf..48905e1b2 100644 --- a/tests/lib/cff_1_3_0/urls/IR__U/test_zenodo_object.py +++ b/tests/lib/cff_1_3_0/urls/IR__U/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,9 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [{ - "name": "Test author" - }] + assert zenodo_object().add_creators().creators == [{"name": "Test author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None @@ -48,19 +45,19 @@ def test_publication_date(self): assert zenodo_object().add_publication_date().publication_date is None def test_related_identifiers(self): - assert zenodo_object().add_related_identifiers().related_identifiers == [{ - "identifier": "https://github.com/the-url-from-identifiers", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-repository", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-url", - "relation": "isSupplementedBy", - "scheme": "url" - }] + assert zenodo_object().add_related_identifiers().related_identifiers == [ + { + "identifier": "https://github.com/the-url-from-identifiers", + "relation": "isSupplementedBy", + "scheme": "url", + }, + { + "identifier": "https://github.com/the-url-from-repository", + "relation": "isSupplementedBy", + "scheme": "url", + }, + {"identifier": "https://github.com/the-url-from-url", "relation": "isSupplementedBy", "scheme": "url"}, + ] def test_title(self): assert zenodo_object().add_title().title == "Test title" diff --git a/tests/lib/cff_1_3_0/urls/IR___/test_apalike_object.py b/tests/lib/cff_1_3_0/urls/IR___/test_apalike_object.py index 45c3cce95..ad15d13f7 100644 --- a/tests/lib/cff_1_3_0/urls/IR___/test_apalike_object.py +++ b/tests/lib/cff_1_3_0/urls/IR___/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_author(self): assert apalike_object().add_author().author == "Test author" diff --git a/tests/lib/cff_1_3_0/urls/IR___/test_bibtex_object.py b/tests/lib/cff_1_3_0/urls/IR___/test_bibtex_object.py index fb4020fb6..db4384fab 100644 --- a/tests/lib/cff_1_3_0/urls/IR___/test_bibtex_object.py +++ b/tests/lib/cff_1_3_0/urls/IR___/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_author(self): assert bibtex_object().add_author().author == "author = {{Test author}}" diff --git a/tests/lib/cff_1_3_0/urls/IR___/test_codemeta_object.py b/tests/lib/cff_1_3_0/urls/IR___/test_codemeta_object.py index 9e3c68836..a987578bd 100644 --- a/tests/lib/cff_1_3_0/urls/IR___/test_codemeta_object.py +++ b/tests/lib/cff_1_3_0/urls/IR___/test_codemeta_object.py @@ -18,16 +18,12 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_check_cffobj(self): codemeta_object().check_cffobj() # doesn't need an assert def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert codemeta_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert codemeta_object().add_urls().code_repository == "https://github.com/the-url-from-repository" diff --git a/tests/lib/cff_1_3_0/urls/IR___/test_endnote_object.py b/tests/lib/cff_1_3_0/urls/IR___/test_endnote_object.py index 65c7d6955..58e42e55b 100644 --- a/tests/lib/cff_1_3_0/urls/IR___/test_endnote_object.py +++ b/tests/lib/cff_1_3_0/urls/IR___/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_check_cffobj(self): endnote_object().check_cffobj() # doesn't need an assert diff --git a/tests/lib/cff_1_3_0/urls/IR___/test_ris_object.py b/tests/lib/cff_1_3_0/urls/IR___/test_ris_object.py index 714e1457a..ab603020a 100644 --- a/tests/lib/cff_1_3_0/urls/IR___/test_ris_object.py +++ b/tests/lib/cff_1_3_0/urls/IR___/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_3_0/urls/IR___/test_schemaorg_object.py b/tests/lib/cff_1_3_0/urls/IR___/test_schemaorg_object.py index 3c257536a..15df14a4a 100644 --- a/tests/lib/cff_1_3_0/urls/IR___/test_schemaorg_object.py +++ b/tests/lib/cff_1_3_0/urls/IR___/test_schemaorg_object.py @@ -18,16 +18,12 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_check_cffobj(self): schemaorg_object().check_cffobj() # doesn't need an assert def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert schemaorg_object().add_urls().code_repository == "https://github.com/the-url-from-repository" diff --git a/tests/lib/cff_1_3_0/urls/IR___/test_zenodo_object.py b/tests/lib/cff_1_3_0/urls/IR___/test_zenodo_object.py index 9e8bbeee6..d4113b5a6 100644 --- a/tests/lib/cff_1_3_0/urls/IR___/test_zenodo_object.py +++ b/tests/lib/cff_1_3_0/urls/IR___/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,9 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [{ - "name": "Test author" - }] + assert zenodo_object().add_creators().creators == [{"name": "Test author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None @@ -48,15 +45,18 @@ def test_publication_date(self): assert zenodo_object().add_publication_date().publication_date is None def test_related_identifiers(self): - assert zenodo_object().add_related_identifiers().related_identifiers == [{ - "identifier": "https://github.com/the-url-from-identifiers", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-repository", - "relation": "isSupplementedBy", - "scheme": "url" - }] + assert zenodo_object().add_related_identifiers().related_identifiers == [ + { + "identifier": "https://github.com/the-url-from-identifiers", + "relation": "isSupplementedBy", + "scheme": "url", + }, + { + "identifier": "https://github.com/the-url-from-repository", + "relation": "isSupplementedBy", + "scheme": "url", + }, + ] def test_title(self): assert zenodo_object().add_title().title == "Test title" diff --git a/tests/lib/cff_1_3_0/urls/I_ACU/test_apalike_object.py b/tests/lib/cff_1_3_0/urls/I_ACU/test_apalike_object.py index 45c3cce95..ad15d13f7 100644 --- a/tests/lib/cff_1_3_0/urls/I_ACU/test_apalike_object.py +++ b/tests/lib/cff_1_3_0/urls/I_ACU/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_author(self): assert apalike_object().add_author().author == "Test author" diff --git a/tests/lib/cff_1_3_0/urls/I_ACU/test_bibtex_object.py b/tests/lib/cff_1_3_0/urls/I_ACU/test_bibtex_object.py index fb4020fb6..db4384fab 100644 --- a/tests/lib/cff_1_3_0/urls/I_ACU/test_bibtex_object.py +++ b/tests/lib/cff_1_3_0/urls/I_ACU/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_author(self): assert bibtex_object().add_author().author == "author = {{Test author}}" diff --git a/tests/lib/cff_1_3_0/urls/I_ACU/test_codemeta_object.py b/tests/lib/cff_1_3_0/urls/I_ACU/test_codemeta_object.py index 62fa2ee5e..3d438694c 100644 --- a/tests/lib/cff_1_3_0/urls/I_ACU/test_codemeta_object.py +++ b/tests/lib/cff_1_3_0/urls/I_ACU/test_codemeta_object.py @@ -18,16 +18,12 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_check_cffobj(self): codemeta_object().check_cffobj() # doesn't need an assert def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert codemeta_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert codemeta_object().add_urls().code_repository == "https://github.com/the-url-from-repository-code" diff --git a/tests/lib/cff_1_3_0/urls/I_ACU/test_endnote_object.py b/tests/lib/cff_1_3_0/urls/I_ACU/test_endnote_object.py index 65c7d6955..58e42e55b 100644 --- a/tests/lib/cff_1_3_0/urls/I_ACU/test_endnote_object.py +++ b/tests/lib/cff_1_3_0/urls/I_ACU/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_check_cffobj(self): endnote_object().check_cffobj() # doesn't need an assert diff --git a/tests/lib/cff_1_3_0/urls/I_ACU/test_ris_object.py b/tests/lib/cff_1_3_0/urls/I_ACU/test_ris_object.py index 714e1457a..ab603020a 100644 --- a/tests/lib/cff_1_3_0/urls/I_ACU/test_ris_object.py +++ b/tests/lib/cff_1_3_0/urls/I_ACU/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_3_0/urls/I_ACU/test_schemaorg_object.py b/tests/lib/cff_1_3_0/urls/I_ACU/test_schemaorg_object.py index a567e9178..cbd8fce93 100644 --- a/tests/lib/cff_1_3_0/urls/I_ACU/test_schemaorg_object.py +++ b/tests/lib/cff_1_3_0/urls/I_ACU/test_schemaorg_object.py @@ -18,16 +18,12 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_check_cffobj(self): schemaorg_object().check_cffobj() # doesn't need an assert def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert schemaorg_object().add_urls().code_repository == "https://github.com/the-url-from-repository-code" diff --git a/tests/lib/cff_1_3_0/urls/I_ACU/test_zenodo_object.py b/tests/lib/cff_1_3_0/urls/I_ACU/test_zenodo_object.py index b86d9d7ea..b5a43b85d 100644 --- a/tests/lib/cff_1_3_0/urls/I_ACU/test_zenodo_object.py +++ b/tests/lib/cff_1_3_0/urls/I_ACU/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,9 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [{ - "name": "Test author" - }] + assert zenodo_object().add_creators().creators == [{"name": "Test author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None @@ -48,23 +45,24 @@ def test_publication_date(self): assert zenodo_object().add_publication_date().publication_date is None def test_related_identifiers(self): - assert zenodo_object().add_related_identifiers().related_identifiers == [{ - "identifier": "https://github.com/the-url-from-identifiers", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-repository-artifact", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-repository-code", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-url", - "relation": "isSupplementedBy", - "scheme": "url" - }] + assert zenodo_object().add_related_identifiers().related_identifiers == [ + { + "identifier": "https://github.com/the-url-from-identifiers", + "relation": "isSupplementedBy", + "scheme": "url", + }, + { + "identifier": "https://github.com/the-url-from-repository-artifact", + "relation": "isSupplementedBy", + "scheme": "url", + }, + { + "identifier": "https://github.com/the-url-from-repository-code", + "relation": "isSupplementedBy", + "scheme": "url", + }, + {"identifier": "https://github.com/the-url-from-url", "relation": "isSupplementedBy", "scheme": "url"}, + ] def test_title(self): assert zenodo_object().add_title().title == "Test title" diff --git a/tests/lib/cff_1_3_0/urls/I_AC_/test_apalike_object.py b/tests/lib/cff_1_3_0/urls/I_AC_/test_apalike_object.py index 45c3cce95..ad15d13f7 100644 --- a/tests/lib/cff_1_3_0/urls/I_AC_/test_apalike_object.py +++ b/tests/lib/cff_1_3_0/urls/I_AC_/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_author(self): assert apalike_object().add_author().author == "Test author" diff --git a/tests/lib/cff_1_3_0/urls/I_AC_/test_bibtex_object.py b/tests/lib/cff_1_3_0/urls/I_AC_/test_bibtex_object.py index fb4020fb6..db4384fab 100644 --- a/tests/lib/cff_1_3_0/urls/I_AC_/test_bibtex_object.py +++ b/tests/lib/cff_1_3_0/urls/I_AC_/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_author(self): assert bibtex_object().add_author().author == "author = {{Test author}}" diff --git a/tests/lib/cff_1_3_0/urls/I_AC_/test_codemeta_object.py b/tests/lib/cff_1_3_0/urls/I_AC_/test_codemeta_object.py index 62fa2ee5e..3d438694c 100644 --- a/tests/lib/cff_1_3_0/urls/I_AC_/test_codemeta_object.py +++ b/tests/lib/cff_1_3_0/urls/I_AC_/test_codemeta_object.py @@ -18,16 +18,12 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_check_cffobj(self): codemeta_object().check_cffobj() # doesn't need an assert def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert codemeta_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert codemeta_object().add_urls().code_repository == "https://github.com/the-url-from-repository-code" diff --git a/tests/lib/cff_1_3_0/urls/I_AC_/test_endnote_object.py b/tests/lib/cff_1_3_0/urls/I_AC_/test_endnote_object.py index 65c7d6955..58e42e55b 100644 --- a/tests/lib/cff_1_3_0/urls/I_AC_/test_endnote_object.py +++ b/tests/lib/cff_1_3_0/urls/I_AC_/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_check_cffobj(self): endnote_object().check_cffobj() # doesn't need an assert diff --git a/tests/lib/cff_1_3_0/urls/I_AC_/test_ris_object.py b/tests/lib/cff_1_3_0/urls/I_AC_/test_ris_object.py index 714e1457a..ab603020a 100644 --- a/tests/lib/cff_1_3_0/urls/I_AC_/test_ris_object.py +++ b/tests/lib/cff_1_3_0/urls/I_AC_/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_3_0/urls/I_AC_/test_schemaorg_object.py b/tests/lib/cff_1_3_0/urls/I_AC_/test_schemaorg_object.py index a567e9178..cbd8fce93 100644 --- a/tests/lib/cff_1_3_0/urls/I_AC_/test_schemaorg_object.py +++ b/tests/lib/cff_1_3_0/urls/I_AC_/test_schemaorg_object.py @@ -18,16 +18,12 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_check_cffobj(self): schemaorg_object().check_cffobj() # doesn't need an assert def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert schemaorg_object().add_urls().code_repository == "https://github.com/the-url-from-repository-code" diff --git a/tests/lib/cff_1_3_0/urls/I_AC_/test_zenodo_object.py b/tests/lib/cff_1_3_0/urls/I_AC_/test_zenodo_object.py index a99b7b75d..96c58b4fd 100644 --- a/tests/lib/cff_1_3_0/urls/I_AC_/test_zenodo_object.py +++ b/tests/lib/cff_1_3_0/urls/I_AC_/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,9 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [{ - "name": "Test author" - }] + assert zenodo_object().add_creators().creators == [{"name": "Test author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None @@ -48,19 +45,23 @@ def test_publication_date(self): assert zenodo_object().add_publication_date().publication_date is None def test_related_identifiers(self): - assert zenodo_object().add_related_identifiers().related_identifiers == [{ - "identifier": "https://github.com/the-url-from-identifiers", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-repository-artifact", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-repository-code", - "relation": "isSupplementedBy", - "scheme": "url" - }] + assert zenodo_object().add_related_identifiers().related_identifiers == [ + { + "identifier": "https://github.com/the-url-from-identifiers", + "relation": "isSupplementedBy", + "scheme": "url", + }, + { + "identifier": "https://github.com/the-url-from-repository-artifact", + "relation": "isSupplementedBy", + "scheme": "url", + }, + { + "identifier": "https://github.com/the-url-from-repository-code", + "relation": "isSupplementedBy", + "scheme": "url", + }, + ] def test_title(self): assert zenodo_object().add_title().title == "Test title" diff --git a/tests/lib/cff_1_3_0/urls/I_A_U/test_apalike_object.py b/tests/lib/cff_1_3_0/urls/I_A_U/test_apalike_object.py index 45c3cce95..ad15d13f7 100644 --- a/tests/lib/cff_1_3_0/urls/I_A_U/test_apalike_object.py +++ b/tests/lib/cff_1_3_0/urls/I_A_U/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_author(self): assert apalike_object().add_author().author == "Test author" diff --git a/tests/lib/cff_1_3_0/urls/I_A_U/test_bibtex_object.py b/tests/lib/cff_1_3_0/urls/I_A_U/test_bibtex_object.py index fb4020fb6..db4384fab 100644 --- a/tests/lib/cff_1_3_0/urls/I_A_U/test_bibtex_object.py +++ b/tests/lib/cff_1_3_0/urls/I_A_U/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_author(self): assert bibtex_object().add_author().author == "author = {{Test author}}" diff --git a/tests/lib/cff_1_3_0/urls/I_A_U/test_codemeta_object.py b/tests/lib/cff_1_3_0/urls/I_A_U/test_codemeta_object.py index 33b94f77c..8e62440ee 100644 --- a/tests/lib/cff_1_3_0/urls/I_A_U/test_codemeta_object.py +++ b/tests/lib/cff_1_3_0/urls/I_A_U/test_codemeta_object.py @@ -18,16 +18,12 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_check_cffobj(self): codemeta_object().check_cffobj() # doesn't need an assert def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert codemeta_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert codemeta_object().add_urls().code_repository is None diff --git a/tests/lib/cff_1_3_0/urls/I_A_U/test_endnote_object.py b/tests/lib/cff_1_3_0/urls/I_A_U/test_endnote_object.py index 65c7d6955..58e42e55b 100644 --- a/tests/lib/cff_1_3_0/urls/I_A_U/test_endnote_object.py +++ b/tests/lib/cff_1_3_0/urls/I_A_U/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_check_cffobj(self): endnote_object().check_cffobj() # doesn't need an assert diff --git a/tests/lib/cff_1_3_0/urls/I_A_U/test_ris_object.py b/tests/lib/cff_1_3_0/urls/I_A_U/test_ris_object.py index 714e1457a..ab603020a 100644 --- a/tests/lib/cff_1_3_0/urls/I_A_U/test_ris_object.py +++ b/tests/lib/cff_1_3_0/urls/I_A_U/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_3_0/urls/I_A_U/test_schemaorg_object.py b/tests/lib/cff_1_3_0/urls/I_A_U/test_schemaorg_object.py index 05ed717d4..932ad92f0 100644 --- a/tests/lib/cff_1_3_0/urls/I_A_U/test_schemaorg_object.py +++ b/tests/lib/cff_1_3_0/urls/I_A_U/test_schemaorg_object.py @@ -18,16 +18,12 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_check_cffobj(self): schemaorg_object().check_cffobj() # doesn't need an assert def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert schemaorg_object().add_urls().code_repository is None diff --git a/tests/lib/cff_1_3_0/urls/I_A_U/test_zenodo_object.py b/tests/lib/cff_1_3_0/urls/I_A_U/test_zenodo_object.py index 7bbded7aa..4a0577507 100644 --- a/tests/lib/cff_1_3_0/urls/I_A_U/test_zenodo_object.py +++ b/tests/lib/cff_1_3_0/urls/I_A_U/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,9 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [{ - "name": "Test author" - }] + assert zenodo_object().add_creators().creators == [{"name": "Test author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None @@ -48,19 +45,19 @@ def test_publication_date(self): assert zenodo_object().add_publication_date().publication_date is None def test_related_identifiers(self): - assert zenodo_object().add_related_identifiers().related_identifiers == [{ - "identifier": "https://github.com/the-url-from-identifiers", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-repository-artifact", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-url", - "relation": "isSupplementedBy", - "scheme": "url" - }] + assert zenodo_object().add_related_identifiers().related_identifiers == [ + { + "identifier": "https://github.com/the-url-from-identifiers", + "relation": "isSupplementedBy", + "scheme": "url", + }, + { + "identifier": "https://github.com/the-url-from-repository-artifact", + "relation": "isSupplementedBy", + "scheme": "url", + }, + {"identifier": "https://github.com/the-url-from-url", "relation": "isSupplementedBy", "scheme": "url"}, + ] def test_title(self): assert zenodo_object().add_title().title == "Test title" diff --git a/tests/lib/cff_1_3_0/urls/I_A__/test_apalike_object.py b/tests/lib/cff_1_3_0/urls/I_A__/test_apalike_object.py index 45c3cce95..ad15d13f7 100644 --- a/tests/lib/cff_1_3_0/urls/I_A__/test_apalike_object.py +++ b/tests/lib/cff_1_3_0/urls/I_A__/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_author(self): assert apalike_object().add_author().author == "Test author" diff --git a/tests/lib/cff_1_3_0/urls/I_A__/test_bibtex_object.py b/tests/lib/cff_1_3_0/urls/I_A__/test_bibtex_object.py index fb4020fb6..db4384fab 100644 --- a/tests/lib/cff_1_3_0/urls/I_A__/test_bibtex_object.py +++ b/tests/lib/cff_1_3_0/urls/I_A__/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_author(self): assert bibtex_object().add_author().author == "author = {{Test author}}" diff --git a/tests/lib/cff_1_3_0/urls/I_A__/test_codemeta_object.py b/tests/lib/cff_1_3_0/urls/I_A__/test_codemeta_object.py index 33b94f77c..8e62440ee 100644 --- a/tests/lib/cff_1_3_0/urls/I_A__/test_codemeta_object.py +++ b/tests/lib/cff_1_3_0/urls/I_A__/test_codemeta_object.py @@ -18,16 +18,12 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_check_cffobj(self): codemeta_object().check_cffobj() # doesn't need an assert def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert codemeta_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert codemeta_object().add_urls().code_repository is None diff --git a/tests/lib/cff_1_3_0/urls/I_A__/test_endnote_object.py b/tests/lib/cff_1_3_0/urls/I_A__/test_endnote_object.py index 65c7d6955..58e42e55b 100644 --- a/tests/lib/cff_1_3_0/urls/I_A__/test_endnote_object.py +++ b/tests/lib/cff_1_3_0/urls/I_A__/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_check_cffobj(self): endnote_object().check_cffobj() # doesn't need an assert diff --git a/tests/lib/cff_1_3_0/urls/I_A__/test_ris_object.py b/tests/lib/cff_1_3_0/urls/I_A__/test_ris_object.py index 714e1457a..ab603020a 100644 --- a/tests/lib/cff_1_3_0/urls/I_A__/test_ris_object.py +++ b/tests/lib/cff_1_3_0/urls/I_A__/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_3_0/urls/I_A__/test_schemaorg_object.py b/tests/lib/cff_1_3_0/urls/I_A__/test_schemaorg_object.py index 05ed717d4..932ad92f0 100644 --- a/tests/lib/cff_1_3_0/urls/I_A__/test_schemaorg_object.py +++ b/tests/lib/cff_1_3_0/urls/I_A__/test_schemaorg_object.py @@ -18,16 +18,12 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_check_cffobj(self): schemaorg_object().check_cffobj() # doesn't need an assert def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert schemaorg_object().add_urls().code_repository is None diff --git a/tests/lib/cff_1_3_0/urls/I_A__/test_zenodo_object.py b/tests/lib/cff_1_3_0/urls/I_A__/test_zenodo_object.py index 094147cdc..4d546ea31 100644 --- a/tests/lib/cff_1_3_0/urls/I_A__/test_zenodo_object.py +++ b/tests/lib/cff_1_3_0/urls/I_A__/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,9 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [{ - "name": "Test author" - }] + assert zenodo_object().add_creators().creators == [{"name": "Test author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None @@ -48,15 +45,18 @@ def test_publication_date(self): assert zenodo_object().add_publication_date().publication_date is None def test_related_identifiers(self): - assert zenodo_object().add_related_identifiers().related_identifiers == [{ - "identifier": "https://github.com/the-url-from-identifiers", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-repository-artifact", - "relation": "isSupplementedBy", - "scheme": "url" - }] + assert zenodo_object().add_related_identifiers().related_identifiers == [ + { + "identifier": "https://github.com/the-url-from-identifiers", + "relation": "isSupplementedBy", + "scheme": "url", + }, + { + "identifier": "https://github.com/the-url-from-repository-artifact", + "relation": "isSupplementedBy", + "scheme": "url", + }, + ] def test_title(self): assert zenodo_object().add_title().title == "Test title" diff --git a/tests/lib/cff_1_3_0/urls/I__CU/test_apalike_object.py b/tests/lib/cff_1_3_0/urls/I__CU/test_apalike_object.py index 45c3cce95..ad15d13f7 100644 --- a/tests/lib/cff_1_3_0/urls/I__CU/test_apalike_object.py +++ b/tests/lib/cff_1_3_0/urls/I__CU/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_author(self): assert apalike_object().add_author().author == "Test author" diff --git a/tests/lib/cff_1_3_0/urls/I__CU/test_bibtex_object.py b/tests/lib/cff_1_3_0/urls/I__CU/test_bibtex_object.py index fb4020fb6..db4384fab 100644 --- a/tests/lib/cff_1_3_0/urls/I__CU/test_bibtex_object.py +++ b/tests/lib/cff_1_3_0/urls/I__CU/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_author(self): assert bibtex_object().add_author().author == "author = {{Test author}}" diff --git a/tests/lib/cff_1_3_0/urls/I__CU/test_codemeta_object.py b/tests/lib/cff_1_3_0/urls/I__CU/test_codemeta_object.py index 62fa2ee5e..3d438694c 100644 --- a/tests/lib/cff_1_3_0/urls/I__CU/test_codemeta_object.py +++ b/tests/lib/cff_1_3_0/urls/I__CU/test_codemeta_object.py @@ -18,16 +18,12 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_check_cffobj(self): codemeta_object().check_cffobj() # doesn't need an assert def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert codemeta_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert codemeta_object().add_urls().code_repository == "https://github.com/the-url-from-repository-code" diff --git a/tests/lib/cff_1_3_0/urls/I__CU/test_endnote_object.py b/tests/lib/cff_1_3_0/urls/I__CU/test_endnote_object.py index 65c7d6955..58e42e55b 100644 --- a/tests/lib/cff_1_3_0/urls/I__CU/test_endnote_object.py +++ b/tests/lib/cff_1_3_0/urls/I__CU/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_check_cffobj(self): endnote_object().check_cffobj() # doesn't need an assert diff --git a/tests/lib/cff_1_3_0/urls/I__CU/test_ris_object.py b/tests/lib/cff_1_3_0/urls/I__CU/test_ris_object.py index 714e1457a..ab603020a 100644 --- a/tests/lib/cff_1_3_0/urls/I__CU/test_ris_object.py +++ b/tests/lib/cff_1_3_0/urls/I__CU/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_3_0/urls/I__CU/test_schemaorg_object.py b/tests/lib/cff_1_3_0/urls/I__CU/test_schemaorg_object.py index a567e9178..cbd8fce93 100644 --- a/tests/lib/cff_1_3_0/urls/I__CU/test_schemaorg_object.py +++ b/tests/lib/cff_1_3_0/urls/I__CU/test_schemaorg_object.py @@ -18,16 +18,12 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_check_cffobj(self): schemaorg_object().check_cffobj() # doesn't need an assert def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert schemaorg_object().add_urls().code_repository == "https://github.com/the-url-from-repository-code" diff --git a/tests/lib/cff_1_3_0/urls/I__CU/test_zenodo_object.py b/tests/lib/cff_1_3_0/urls/I__CU/test_zenodo_object.py index 521b8311c..2946e94f6 100644 --- a/tests/lib/cff_1_3_0/urls/I__CU/test_zenodo_object.py +++ b/tests/lib/cff_1_3_0/urls/I__CU/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,9 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [{ - "name": "Test author" - }] + assert zenodo_object().add_creators().creators == [{"name": "Test author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None @@ -48,19 +45,19 @@ def test_publication_date(self): assert zenodo_object().add_publication_date().publication_date is None def test_related_identifiers(self): - assert zenodo_object().add_related_identifiers().related_identifiers == [{ - "identifier": "https://github.com/the-url-from-identifiers", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-repository-code", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-url", - "relation": "isSupplementedBy", - "scheme": "url" - }] + assert zenodo_object().add_related_identifiers().related_identifiers == [ + { + "identifier": "https://github.com/the-url-from-identifiers", + "relation": "isSupplementedBy", + "scheme": "url", + }, + { + "identifier": "https://github.com/the-url-from-repository-code", + "relation": "isSupplementedBy", + "scheme": "url", + }, + {"identifier": "https://github.com/the-url-from-url", "relation": "isSupplementedBy", "scheme": "url"}, + ] def test_title(self): assert zenodo_object().add_title().title == "Test title" diff --git a/tests/lib/cff_1_3_0/urls/I__C_/test_apalike_object.py b/tests/lib/cff_1_3_0/urls/I__C_/test_apalike_object.py index 45c3cce95..ad15d13f7 100644 --- a/tests/lib/cff_1_3_0/urls/I__C_/test_apalike_object.py +++ b/tests/lib/cff_1_3_0/urls/I__C_/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_author(self): assert apalike_object().add_author().author == "Test author" diff --git a/tests/lib/cff_1_3_0/urls/I__C_/test_bibtex_object.py b/tests/lib/cff_1_3_0/urls/I__C_/test_bibtex_object.py index fb4020fb6..db4384fab 100644 --- a/tests/lib/cff_1_3_0/urls/I__C_/test_bibtex_object.py +++ b/tests/lib/cff_1_3_0/urls/I__C_/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_author(self): assert bibtex_object().add_author().author == "author = {{Test author}}" diff --git a/tests/lib/cff_1_3_0/urls/I__C_/test_codemeta_object.py b/tests/lib/cff_1_3_0/urls/I__C_/test_codemeta_object.py index 62fa2ee5e..3d438694c 100644 --- a/tests/lib/cff_1_3_0/urls/I__C_/test_codemeta_object.py +++ b/tests/lib/cff_1_3_0/urls/I__C_/test_codemeta_object.py @@ -18,16 +18,12 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_check_cffobj(self): codemeta_object().check_cffobj() # doesn't need an assert def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert codemeta_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert codemeta_object().add_urls().code_repository == "https://github.com/the-url-from-repository-code" diff --git a/tests/lib/cff_1_3_0/urls/I__C_/test_endnote_object.py b/tests/lib/cff_1_3_0/urls/I__C_/test_endnote_object.py index 65c7d6955..58e42e55b 100644 --- a/tests/lib/cff_1_3_0/urls/I__C_/test_endnote_object.py +++ b/tests/lib/cff_1_3_0/urls/I__C_/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_check_cffobj(self): endnote_object().check_cffobj() # doesn't need an assert diff --git a/tests/lib/cff_1_3_0/urls/I__C_/test_ris_object.py b/tests/lib/cff_1_3_0/urls/I__C_/test_ris_object.py index 714e1457a..ab603020a 100644 --- a/tests/lib/cff_1_3_0/urls/I__C_/test_ris_object.py +++ b/tests/lib/cff_1_3_0/urls/I__C_/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_3_0/urls/I__C_/test_schemaorg_object.py b/tests/lib/cff_1_3_0/urls/I__C_/test_schemaorg_object.py index a567e9178..cbd8fce93 100644 --- a/tests/lib/cff_1_3_0/urls/I__C_/test_schemaorg_object.py +++ b/tests/lib/cff_1_3_0/urls/I__C_/test_schemaorg_object.py @@ -18,16 +18,12 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_check_cffobj(self): schemaorg_object().check_cffobj() # doesn't need an assert def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert schemaorg_object().add_urls().code_repository == "https://github.com/the-url-from-repository-code" diff --git a/tests/lib/cff_1_3_0/urls/I__C_/test_zenodo_object.py b/tests/lib/cff_1_3_0/urls/I__C_/test_zenodo_object.py index 55cfeb8eb..b32d6a6a3 100644 --- a/tests/lib/cff_1_3_0/urls/I__C_/test_zenodo_object.py +++ b/tests/lib/cff_1_3_0/urls/I__C_/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,9 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [{ - "name": "Test author" - }] + assert zenodo_object().add_creators().creators == [{"name": "Test author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None @@ -48,15 +45,18 @@ def test_publication_date(self): assert zenodo_object().add_publication_date().publication_date is None def test_related_identifiers(self): - assert zenodo_object().add_related_identifiers().related_identifiers == [{ - "identifier": "https://github.com/the-url-from-identifiers", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-repository-code", - "relation": "isSupplementedBy", - "scheme": "url" - }] + assert zenodo_object().add_related_identifiers().related_identifiers == [ + { + "identifier": "https://github.com/the-url-from-identifiers", + "relation": "isSupplementedBy", + "scheme": "url", + }, + { + "identifier": "https://github.com/the-url-from-repository-code", + "relation": "isSupplementedBy", + "scheme": "url", + }, + ] def test_title(self): assert zenodo_object().add_title().title == "Test title" diff --git a/tests/lib/cff_1_3_0/urls/I___U/test_apalike_object.py b/tests/lib/cff_1_3_0/urls/I___U/test_apalike_object.py index 45c3cce95..ad15d13f7 100644 --- a/tests/lib/cff_1_3_0/urls/I___U/test_apalike_object.py +++ b/tests/lib/cff_1_3_0/urls/I___U/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_author(self): assert apalike_object().add_author().author == "Test author" diff --git a/tests/lib/cff_1_3_0/urls/I___U/test_bibtex_object.py b/tests/lib/cff_1_3_0/urls/I___U/test_bibtex_object.py index fb4020fb6..db4384fab 100644 --- a/tests/lib/cff_1_3_0/urls/I___U/test_bibtex_object.py +++ b/tests/lib/cff_1_3_0/urls/I___U/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_author(self): assert bibtex_object().add_author().author == "author = {{Test author}}" diff --git a/tests/lib/cff_1_3_0/urls/I___U/test_codemeta_object.py b/tests/lib/cff_1_3_0/urls/I___U/test_codemeta_object.py index 33b94f77c..8e62440ee 100644 --- a/tests/lib/cff_1_3_0/urls/I___U/test_codemeta_object.py +++ b/tests/lib/cff_1_3_0/urls/I___U/test_codemeta_object.py @@ -18,16 +18,12 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_check_cffobj(self): codemeta_object().check_cffobj() # doesn't need an assert def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert codemeta_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert codemeta_object().add_urls().code_repository is None diff --git a/tests/lib/cff_1_3_0/urls/I___U/test_endnote_object.py b/tests/lib/cff_1_3_0/urls/I___U/test_endnote_object.py index 65c7d6955..58e42e55b 100644 --- a/tests/lib/cff_1_3_0/urls/I___U/test_endnote_object.py +++ b/tests/lib/cff_1_3_0/urls/I___U/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_check_cffobj(self): endnote_object().check_cffobj() # doesn't need an assert diff --git a/tests/lib/cff_1_3_0/urls/I___U/test_ris_object.py b/tests/lib/cff_1_3_0/urls/I___U/test_ris_object.py index 714e1457a..ab603020a 100644 --- a/tests/lib/cff_1_3_0/urls/I___U/test_ris_object.py +++ b/tests/lib/cff_1_3_0/urls/I___U/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_3_0/urls/I___U/test_schemaorg_object.py b/tests/lib/cff_1_3_0/urls/I___U/test_schemaorg_object.py index 05ed717d4..932ad92f0 100644 --- a/tests/lib/cff_1_3_0/urls/I___U/test_schemaorg_object.py +++ b/tests/lib/cff_1_3_0/urls/I___U/test_schemaorg_object.py @@ -18,16 +18,12 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_check_cffobj(self): schemaorg_object().check_cffobj() # doesn't need an assert def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert schemaorg_object().add_urls().code_repository is None diff --git a/tests/lib/cff_1_3_0/urls/I___U/test_zenodo_object.py b/tests/lib/cff_1_3_0/urls/I___U/test_zenodo_object.py index d2966c532..7fe808f76 100644 --- a/tests/lib/cff_1_3_0/urls/I___U/test_zenodo_object.py +++ b/tests/lib/cff_1_3_0/urls/I___U/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,9 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [{ - "name": "Test author" - }] + assert zenodo_object().add_creators().creators == [{"name": "Test author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None @@ -48,15 +45,14 @@ def test_publication_date(self): assert zenodo_object().add_publication_date().publication_date is None def test_related_identifiers(self): - assert zenodo_object().add_related_identifiers().related_identifiers == [{ - "identifier": "https://github.com/the-url-from-identifiers", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-url", - "relation": "isSupplementedBy", - "scheme": "url" - }] + assert zenodo_object().add_related_identifiers().related_identifiers == [ + { + "identifier": "https://github.com/the-url-from-identifiers", + "relation": "isSupplementedBy", + "scheme": "url", + }, + {"identifier": "https://github.com/the-url-from-url", "relation": "isSupplementedBy", "scheme": "url"}, + ] def test_title(self): assert zenodo_object().add_title().title == "Test title" diff --git a/tests/lib/cff_1_3_0/urls/I____/test_apalike_object.py b/tests/lib/cff_1_3_0/urls/I____/test_apalike_object.py index 45c3cce95..ad15d13f7 100644 --- a/tests/lib/cff_1_3_0/urls/I____/test_apalike_object.py +++ b/tests/lib/cff_1_3_0/urls/I____/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_author(self): assert apalike_object().add_author().author == "Test author" diff --git a/tests/lib/cff_1_3_0/urls/I____/test_bibtex_object.py b/tests/lib/cff_1_3_0/urls/I____/test_bibtex_object.py index fb4020fb6..db4384fab 100644 --- a/tests/lib/cff_1_3_0/urls/I____/test_bibtex_object.py +++ b/tests/lib/cff_1_3_0/urls/I____/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_author(self): assert bibtex_object().add_author().author == "author = {{Test author}}" diff --git a/tests/lib/cff_1_3_0/urls/I____/test_codemeta_object.py b/tests/lib/cff_1_3_0/urls/I____/test_codemeta_object.py index 33b94f77c..8e62440ee 100644 --- a/tests/lib/cff_1_3_0/urls/I____/test_codemeta_object.py +++ b/tests/lib/cff_1_3_0/urls/I____/test_codemeta_object.py @@ -18,16 +18,12 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_check_cffobj(self): codemeta_object().check_cffobj() # doesn't need an assert def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert codemeta_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert codemeta_object().add_urls().code_repository is None diff --git a/tests/lib/cff_1_3_0/urls/I____/test_endnote_object.py b/tests/lib/cff_1_3_0/urls/I____/test_endnote_object.py index 65c7d6955..58e42e55b 100644 --- a/tests/lib/cff_1_3_0/urls/I____/test_endnote_object.py +++ b/tests/lib/cff_1_3_0/urls/I____/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_check_cffobj(self): endnote_object().check_cffobj() # doesn't need an assert diff --git a/tests/lib/cff_1_3_0/urls/I____/test_ris_object.py b/tests/lib/cff_1_3_0/urls/I____/test_ris_object.py index 714e1457a..ab603020a 100644 --- a/tests/lib/cff_1_3_0/urls/I____/test_ris_object.py +++ b/tests/lib/cff_1_3_0/urls/I____/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_3_0/urls/I____/test_schemaorg_object.py b/tests/lib/cff_1_3_0/urls/I____/test_schemaorg_object.py index 05ed717d4..932ad92f0 100644 --- a/tests/lib/cff_1_3_0/urls/I____/test_schemaorg_object.py +++ b/tests/lib/cff_1_3_0/urls/I____/test_schemaorg_object.py @@ -18,16 +18,12 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_check_cffobj(self): schemaorg_object().check_cffobj() # doesn't need an assert def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert schemaorg_object().add_urls().code_repository is None diff --git a/tests/lib/cff_1_3_0/urls/I____/test_zenodo_object.py b/tests/lib/cff_1_3_0/urls/I____/test_zenodo_object.py index 525290a16..7876b9e5a 100644 --- a/tests/lib/cff_1_3_0/urls/I____/test_zenodo_object.py +++ b/tests/lib/cff_1_3_0/urls/I____/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,9 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [{ - "name": "Test author" - }] + assert zenodo_object().add_creators().creators == [{"name": "Test author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None @@ -48,11 +45,13 @@ def test_publication_date(self): assert zenodo_object().add_publication_date().publication_date is None def test_related_identifiers(self): - assert zenodo_object().add_related_identifiers().related_identifiers == [{ - "identifier": "https://github.com/the-url-from-identifiers", - "relation": "isSupplementedBy", - "scheme": "url" - }] + assert zenodo_object().add_related_identifiers().related_identifiers == [ + { + "identifier": "https://github.com/the-url-from-identifiers", + "relation": "isSupplementedBy", + "scheme": "url", + } + ] def test_title(self): assert zenodo_object().add_title().title == "Test title" diff --git a/tests/lib/cff_1_3_0/urls/_RACU/test_apalike_object.py b/tests/lib/cff_1_3_0/urls/_RACU/test_apalike_object.py index b02775d60..eb107af42 100644 --- a/tests/lib/cff_1_3_0/urls/_RACU/test_apalike_object.py +++ b/tests/lib/cff_1_3_0/urls/_RACU/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_author(self): assert apalike_object().add_author().author == "Test author" diff --git a/tests/lib/cff_1_3_0/urls/_RACU/test_bibtex_object.py b/tests/lib/cff_1_3_0/urls/_RACU/test_bibtex_object.py index 14fd511a2..abc1c8141 100644 --- a/tests/lib/cff_1_3_0/urls/_RACU/test_bibtex_object.py +++ b/tests/lib/cff_1_3_0/urls/_RACU/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_author(self): assert bibtex_object().add_author().author == "author = {{Test author}}" diff --git a/tests/lib/cff_1_3_0/urls/_RACU/test_codemeta_object.py b/tests/lib/cff_1_3_0/urls/_RACU/test_codemeta_object.py index c838e12bb..09056c784 100644 --- a/tests/lib/cff_1_3_0/urls/_RACU/test_codemeta_object.py +++ b/tests/lib/cff_1_3_0/urls/_RACU/test_codemeta_object.py @@ -18,16 +18,12 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_check_cffobj(self): codemeta_object().check_cffobj() # doesn't need an assert def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert codemeta_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert codemeta_object().add_urls().code_repository == "https://github.com/the-url-from-repository-code" diff --git a/tests/lib/cff_1_3_0/urls/_RACU/test_endnote_object.py b/tests/lib/cff_1_3_0/urls/_RACU/test_endnote_object.py index f1a5326ae..c9baf0460 100644 --- a/tests/lib/cff_1_3_0/urls/_RACU/test_endnote_object.py +++ b/tests/lib/cff_1_3_0/urls/_RACU/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_check_cffobj(self): endnote_object().check_cffobj() # doesn't need an assert diff --git a/tests/lib/cff_1_3_0/urls/_RACU/test_ris_object.py b/tests/lib/cff_1_3_0/urls/_RACU/test_ris_object.py index 0af2ca3d4..d5990d15d 100644 --- a/tests/lib/cff_1_3_0/urls/_RACU/test_ris_object.py +++ b/tests/lib/cff_1_3_0/urls/_RACU/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_3_0/urls/_RACU/test_schemaorg_object.py b/tests/lib/cff_1_3_0/urls/_RACU/test_schemaorg_object.py index 605a07342..7e83a6c0b 100644 --- a/tests/lib/cff_1_3_0/urls/_RACU/test_schemaorg_object.py +++ b/tests/lib/cff_1_3_0/urls/_RACU/test_schemaorg_object.py @@ -18,16 +18,12 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_check_cffobj(self): schemaorg_object().check_cffobj() # doesn't need an assert def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert schemaorg_object().add_urls().code_repository == "https://github.com/the-url-from-repository-code" diff --git a/tests/lib/cff_1_3_0/urls/_RACU/test_zenodo_object.py b/tests/lib/cff_1_3_0/urls/_RACU/test_zenodo_object.py index 1926c2700..9b0d0b4ea 100644 --- a/tests/lib/cff_1_3_0/urls/_RACU/test_zenodo_object.py +++ b/tests/lib/cff_1_3_0/urls/_RACU/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,9 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [{ - "name": "Test author" - }] + assert zenodo_object().add_creators().creators == [{"name": "Test author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None @@ -48,23 +45,24 @@ def test_publication_date(self): assert zenodo_object().add_publication_date().publication_date is None def test_related_identifiers(self): - assert zenodo_object().add_related_identifiers().related_identifiers == [{ - "identifier": "https://github.com/the-url-from-repository", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-repository-artifact", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-repository-code", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-url", - "relation": "isSupplementedBy", - "scheme": "url" - }] + assert zenodo_object().add_related_identifiers().related_identifiers == [ + { + "identifier": "https://github.com/the-url-from-repository", + "relation": "isSupplementedBy", + "scheme": "url", + }, + { + "identifier": "https://github.com/the-url-from-repository-artifact", + "relation": "isSupplementedBy", + "scheme": "url", + }, + { + "identifier": "https://github.com/the-url-from-repository-code", + "relation": "isSupplementedBy", + "scheme": "url", + }, + {"identifier": "https://github.com/the-url-from-url", "relation": "isSupplementedBy", "scheme": "url"}, + ] def test_title(self): assert zenodo_object().add_title().title == "Test title" diff --git a/tests/lib/cff_1_3_0/urls/_RAC_/test_apalike_object.py b/tests/lib/cff_1_3_0/urls/_RAC_/test_apalike_object.py index f01ae5c93..56bb63921 100644 --- a/tests/lib/cff_1_3_0/urls/_RAC_/test_apalike_object.py +++ b/tests/lib/cff_1_3_0/urls/_RAC_/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_author(self): assert apalike_object().add_author().author == "Test author" diff --git a/tests/lib/cff_1_3_0/urls/_RAC_/test_bibtex_object.py b/tests/lib/cff_1_3_0/urls/_RAC_/test_bibtex_object.py index ad9c196f7..3f242f2d6 100644 --- a/tests/lib/cff_1_3_0/urls/_RAC_/test_bibtex_object.py +++ b/tests/lib/cff_1_3_0/urls/_RAC_/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_author(self): assert bibtex_object().add_author().author == "author = {{Test author}}" diff --git a/tests/lib/cff_1_3_0/urls/_RAC_/test_codemeta_object.py b/tests/lib/cff_1_3_0/urls/_RAC_/test_codemeta_object.py index 414e8636c..b7e10be04 100644 --- a/tests/lib/cff_1_3_0/urls/_RAC_/test_codemeta_object.py +++ b/tests/lib/cff_1_3_0/urls/_RAC_/test_codemeta_object.py @@ -18,16 +18,12 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_check_cffobj(self): codemeta_object().check_cffobj() # doesn't need an assert def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert codemeta_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert codemeta_object().add_urls().code_repository == "https://github.com/the-url-from-repository-code" diff --git a/tests/lib/cff_1_3_0/urls/_RAC_/test_endnote_object.py b/tests/lib/cff_1_3_0/urls/_RAC_/test_endnote_object.py index 38cdcb0f1..c9745e7c0 100644 --- a/tests/lib/cff_1_3_0/urls/_RAC_/test_endnote_object.py +++ b/tests/lib/cff_1_3_0/urls/_RAC_/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_check_cffobj(self): endnote_object().check_cffobj() # doesn't need an assert diff --git a/tests/lib/cff_1_3_0/urls/_RAC_/test_ris_object.py b/tests/lib/cff_1_3_0/urls/_RAC_/test_ris_object.py index 0ae17d765..15b1d5282 100644 --- a/tests/lib/cff_1_3_0/urls/_RAC_/test_ris_object.py +++ b/tests/lib/cff_1_3_0/urls/_RAC_/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_3_0/urls/_RAC_/test_schemaorg_object.py b/tests/lib/cff_1_3_0/urls/_RAC_/test_schemaorg_object.py index 90da44d90..f0774dc4b 100644 --- a/tests/lib/cff_1_3_0/urls/_RAC_/test_schemaorg_object.py +++ b/tests/lib/cff_1_3_0/urls/_RAC_/test_schemaorg_object.py @@ -18,16 +18,12 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_check_cffobj(self): schemaorg_object().check_cffobj() # doesn't need an assert def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert schemaorg_object().add_urls().code_repository == "https://github.com/the-url-from-repository-code" diff --git a/tests/lib/cff_1_3_0/urls/_RAC_/test_zenodo_object.py b/tests/lib/cff_1_3_0/urls/_RAC_/test_zenodo_object.py index a13d00cf5..da4f23604 100644 --- a/tests/lib/cff_1_3_0/urls/_RAC_/test_zenodo_object.py +++ b/tests/lib/cff_1_3_0/urls/_RAC_/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,9 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [{ - "name": "Test author" - }] + assert zenodo_object().add_creators().creators == [{"name": "Test author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None @@ -48,19 +45,23 @@ def test_publication_date(self): assert zenodo_object().add_publication_date().publication_date is None def test_related_identifiers(self): - assert zenodo_object().add_related_identifiers().related_identifiers == [{ - "identifier": "https://github.com/the-url-from-repository", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-repository-artifact", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-repository-code", - "relation": "isSupplementedBy", - "scheme": "url" - }] + assert zenodo_object().add_related_identifiers().related_identifiers == [ + { + "identifier": "https://github.com/the-url-from-repository", + "relation": "isSupplementedBy", + "scheme": "url", + }, + { + "identifier": "https://github.com/the-url-from-repository-artifact", + "relation": "isSupplementedBy", + "scheme": "url", + }, + { + "identifier": "https://github.com/the-url-from-repository-code", + "relation": "isSupplementedBy", + "scheme": "url", + }, + ] def test_title(self): assert zenodo_object().add_title().title == "Test title" diff --git a/tests/lib/cff_1_3_0/urls/_RA_U/test_apalike_object.py b/tests/lib/cff_1_3_0/urls/_RA_U/test_apalike_object.py index b02775d60..eb107af42 100644 --- a/tests/lib/cff_1_3_0/urls/_RA_U/test_apalike_object.py +++ b/tests/lib/cff_1_3_0/urls/_RA_U/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_author(self): assert apalike_object().add_author().author == "Test author" diff --git a/tests/lib/cff_1_3_0/urls/_RA_U/test_bibtex_object.py b/tests/lib/cff_1_3_0/urls/_RA_U/test_bibtex_object.py index 14fd511a2..abc1c8141 100644 --- a/tests/lib/cff_1_3_0/urls/_RA_U/test_bibtex_object.py +++ b/tests/lib/cff_1_3_0/urls/_RA_U/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_author(self): assert bibtex_object().add_author().author == "author = {{Test author}}" diff --git a/tests/lib/cff_1_3_0/urls/_RA_U/test_codemeta_object.py b/tests/lib/cff_1_3_0/urls/_RA_U/test_codemeta_object.py index 6842fdded..9b6faa3c3 100644 --- a/tests/lib/cff_1_3_0/urls/_RA_U/test_codemeta_object.py +++ b/tests/lib/cff_1_3_0/urls/_RA_U/test_codemeta_object.py @@ -18,16 +18,12 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_check_cffobj(self): codemeta_object().check_cffobj() # doesn't need an assert def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert codemeta_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert codemeta_object().add_urls().code_repository == "https://github.com/the-url-from-repository" diff --git a/tests/lib/cff_1_3_0/urls/_RA_U/test_endnote_object.py b/tests/lib/cff_1_3_0/urls/_RA_U/test_endnote_object.py index f1a5326ae..c9baf0460 100644 --- a/tests/lib/cff_1_3_0/urls/_RA_U/test_endnote_object.py +++ b/tests/lib/cff_1_3_0/urls/_RA_U/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_check_cffobj(self): endnote_object().check_cffobj() # doesn't need an assert diff --git a/tests/lib/cff_1_3_0/urls/_RA_U/test_ris_object.py b/tests/lib/cff_1_3_0/urls/_RA_U/test_ris_object.py index 0af2ca3d4..d5990d15d 100644 --- a/tests/lib/cff_1_3_0/urls/_RA_U/test_ris_object.py +++ b/tests/lib/cff_1_3_0/urls/_RA_U/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_3_0/urls/_RA_U/test_schemaorg_object.py b/tests/lib/cff_1_3_0/urls/_RA_U/test_schemaorg_object.py index e67429305..a559d2daf 100644 --- a/tests/lib/cff_1_3_0/urls/_RA_U/test_schemaorg_object.py +++ b/tests/lib/cff_1_3_0/urls/_RA_U/test_schemaorg_object.py @@ -18,16 +18,12 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_check_cffobj(self): schemaorg_object().check_cffobj() # doesn't need an assert def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert schemaorg_object().add_urls().code_repository == "https://github.com/the-url-from-repository" diff --git a/tests/lib/cff_1_3_0/urls/_RA_U/test_zenodo_object.py b/tests/lib/cff_1_3_0/urls/_RA_U/test_zenodo_object.py index 1f33981fe..ea8372f2f 100644 --- a/tests/lib/cff_1_3_0/urls/_RA_U/test_zenodo_object.py +++ b/tests/lib/cff_1_3_0/urls/_RA_U/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,9 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [{ - "name": "Test author" - }] + assert zenodo_object().add_creators().creators == [{"name": "Test author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None @@ -48,19 +45,19 @@ def test_publication_date(self): assert zenodo_object().add_publication_date().publication_date is None def test_related_identifiers(self): - assert zenodo_object().add_related_identifiers().related_identifiers == [{ - "identifier": "https://github.com/the-url-from-repository", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-repository-artifact", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-url", - "relation": "isSupplementedBy", - "scheme": "url" - }] + assert zenodo_object().add_related_identifiers().related_identifiers == [ + { + "identifier": "https://github.com/the-url-from-repository", + "relation": "isSupplementedBy", + "scheme": "url", + }, + { + "identifier": "https://github.com/the-url-from-repository-artifact", + "relation": "isSupplementedBy", + "scheme": "url", + }, + {"identifier": "https://github.com/the-url-from-url", "relation": "isSupplementedBy", "scheme": "url"}, + ] def test_title(self): assert zenodo_object().add_title().title == "Test title" diff --git a/tests/lib/cff_1_3_0/urls/_RA__/test_apalike_object.py b/tests/lib/cff_1_3_0/urls/_RA__/test_apalike_object.py index 6fb02b8b5..f0c39ead5 100644 --- a/tests/lib/cff_1_3_0/urls/_RA__/test_apalike_object.py +++ b/tests/lib/cff_1_3_0/urls/_RA__/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_author(self): assert apalike_object().add_author().author == "Test author" diff --git a/tests/lib/cff_1_3_0/urls/_RA__/test_bibtex_object.py b/tests/lib/cff_1_3_0/urls/_RA__/test_bibtex_object.py index 2e2ef5ce3..27f30cbc7 100644 --- a/tests/lib/cff_1_3_0/urls/_RA__/test_bibtex_object.py +++ b/tests/lib/cff_1_3_0/urls/_RA__/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_author(self): assert bibtex_object().add_author().author == "author = {{Test author}}" diff --git a/tests/lib/cff_1_3_0/urls/_RA__/test_codemeta_object.py b/tests/lib/cff_1_3_0/urls/_RA__/test_codemeta_object.py index d35aac4fd..9d7971bdd 100644 --- a/tests/lib/cff_1_3_0/urls/_RA__/test_codemeta_object.py +++ b/tests/lib/cff_1_3_0/urls/_RA__/test_codemeta_object.py @@ -18,16 +18,12 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_check_cffobj(self): codemeta_object().check_cffobj() # doesn't need an assert def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert codemeta_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert codemeta_object().add_urls().code_repository == "https://github.com/the-url-from-repository" diff --git a/tests/lib/cff_1_3_0/urls/_RA__/test_endnote_object.py b/tests/lib/cff_1_3_0/urls/_RA__/test_endnote_object.py index 2cdd63511..89076c1fd 100644 --- a/tests/lib/cff_1_3_0/urls/_RA__/test_endnote_object.py +++ b/tests/lib/cff_1_3_0/urls/_RA__/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_check_cffobj(self): endnote_object().check_cffobj() # doesn't need an assert diff --git a/tests/lib/cff_1_3_0/urls/_RA__/test_ris_object.py b/tests/lib/cff_1_3_0/urls/_RA__/test_ris_object.py index b3e39c586..ee8fe18fd 100644 --- a/tests/lib/cff_1_3_0/urls/_RA__/test_ris_object.py +++ b/tests/lib/cff_1_3_0/urls/_RA__/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_3_0/urls/_RA__/test_schemaorg_object.py b/tests/lib/cff_1_3_0/urls/_RA__/test_schemaorg_object.py index 594cdfb68..8e5d7bc6f 100644 --- a/tests/lib/cff_1_3_0/urls/_RA__/test_schemaorg_object.py +++ b/tests/lib/cff_1_3_0/urls/_RA__/test_schemaorg_object.py @@ -18,16 +18,12 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_check_cffobj(self): schemaorg_object().check_cffobj() # doesn't need an assert def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert schemaorg_object().add_urls().code_repository == "https://github.com/the-url-from-repository" diff --git a/tests/lib/cff_1_3_0/urls/_RA__/test_zenodo_object.py b/tests/lib/cff_1_3_0/urls/_RA__/test_zenodo_object.py index b621e4ee2..0cb22aa30 100644 --- a/tests/lib/cff_1_3_0/urls/_RA__/test_zenodo_object.py +++ b/tests/lib/cff_1_3_0/urls/_RA__/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,9 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [{ - "name": "Test author" - }] + assert zenodo_object().add_creators().creators == [{"name": "Test author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None @@ -48,15 +45,18 @@ def test_publication_date(self): assert zenodo_object().add_publication_date().publication_date is None def test_related_identifiers(self): - assert zenodo_object().add_related_identifiers().related_identifiers == [{ - "identifier": "https://github.com/the-url-from-repository", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-repository-artifact", - "relation": "isSupplementedBy", - "scheme": "url" - }] + assert zenodo_object().add_related_identifiers().related_identifiers == [ + { + "identifier": "https://github.com/the-url-from-repository", + "relation": "isSupplementedBy", + "scheme": "url", + }, + { + "identifier": "https://github.com/the-url-from-repository-artifact", + "relation": "isSupplementedBy", + "scheme": "url", + }, + ] def test_title(self): assert zenodo_object().add_title().title == "Test title" diff --git a/tests/lib/cff_1_3_0/urls/_R_CU/test_apalike_object.py b/tests/lib/cff_1_3_0/urls/_R_CU/test_apalike_object.py index b02775d60..eb107af42 100644 --- a/tests/lib/cff_1_3_0/urls/_R_CU/test_apalike_object.py +++ b/tests/lib/cff_1_3_0/urls/_R_CU/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_author(self): assert apalike_object().add_author().author == "Test author" diff --git a/tests/lib/cff_1_3_0/urls/_R_CU/test_bibtex_object.py b/tests/lib/cff_1_3_0/urls/_R_CU/test_bibtex_object.py index 14fd511a2..abc1c8141 100644 --- a/tests/lib/cff_1_3_0/urls/_R_CU/test_bibtex_object.py +++ b/tests/lib/cff_1_3_0/urls/_R_CU/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_author(self): assert bibtex_object().add_author().author == "author = {{Test author}}" diff --git a/tests/lib/cff_1_3_0/urls/_R_CU/test_codemeta_object.py b/tests/lib/cff_1_3_0/urls/_R_CU/test_codemeta_object.py index c838e12bb..09056c784 100644 --- a/tests/lib/cff_1_3_0/urls/_R_CU/test_codemeta_object.py +++ b/tests/lib/cff_1_3_0/urls/_R_CU/test_codemeta_object.py @@ -18,16 +18,12 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_check_cffobj(self): codemeta_object().check_cffobj() # doesn't need an assert def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert codemeta_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert codemeta_object().add_urls().code_repository == "https://github.com/the-url-from-repository-code" diff --git a/tests/lib/cff_1_3_0/urls/_R_CU/test_endnote_object.py b/tests/lib/cff_1_3_0/urls/_R_CU/test_endnote_object.py index f1a5326ae..c9baf0460 100644 --- a/tests/lib/cff_1_3_0/urls/_R_CU/test_endnote_object.py +++ b/tests/lib/cff_1_3_0/urls/_R_CU/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_check_cffobj(self): endnote_object().check_cffobj() # doesn't need an assert diff --git a/tests/lib/cff_1_3_0/urls/_R_CU/test_ris_object.py b/tests/lib/cff_1_3_0/urls/_R_CU/test_ris_object.py index 0af2ca3d4..d5990d15d 100644 --- a/tests/lib/cff_1_3_0/urls/_R_CU/test_ris_object.py +++ b/tests/lib/cff_1_3_0/urls/_R_CU/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_3_0/urls/_R_CU/test_schemaorg_object.py b/tests/lib/cff_1_3_0/urls/_R_CU/test_schemaorg_object.py index 605a07342..7e83a6c0b 100644 --- a/tests/lib/cff_1_3_0/urls/_R_CU/test_schemaorg_object.py +++ b/tests/lib/cff_1_3_0/urls/_R_CU/test_schemaorg_object.py @@ -18,16 +18,12 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_check_cffobj(self): schemaorg_object().check_cffobj() # doesn't need an assert def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert schemaorg_object().add_urls().code_repository == "https://github.com/the-url-from-repository-code" diff --git a/tests/lib/cff_1_3_0/urls/_R_CU/test_zenodo_object.py b/tests/lib/cff_1_3_0/urls/_R_CU/test_zenodo_object.py index 618c9b7cc..1b755946e 100644 --- a/tests/lib/cff_1_3_0/urls/_R_CU/test_zenodo_object.py +++ b/tests/lib/cff_1_3_0/urls/_R_CU/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,9 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [{ - "name": "Test author" - }] + assert zenodo_object().add_creators().creators == [{"name": "Test author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None @@ -48,19 +45,19 @@ def test_publication_date(self): assert zenodo_object().add_publication_date().publication_date is None def test_related_identifiers(self): - assert zenodo_object().add_related_identifiers().related_identifiers == [{ - "identifier": "https://github.com/the-url-from-repository", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-repository-code", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-url", - "relation": "isSupplementedBy", - "scheme": "url" - }] + assert zenodo_object().add_related_identifiers().related_identifiers == [ + { + "identifier": "https://github.com/the-url-from-repository", + "relation": "isSupplementedBy", + "scheme": "url", + }, + { + "identifier": "https://github.com/the-url-from-repository-code", + "relation": "isSupplementedBy", + "scheme": "url", + }, + {"identifier": "https://github.com/the-url-from-url", "relation": "isSupplementedBy", "scheme": "url"}, + ] def test_title(self): assert zenodo_object().add_title().title == "Test title" diff --git a/tests/lib/cff_1_3_0/urls/_R_C_/test_apalike_object.py b/tests/lib/cff_1_3_0/urls/_R_C_/test_apalike_object.py index f01ae5c93..56bb63921 100644 --- a/tests/lib/cff_1_3_0/urls/_R_C_/test_apalike_object.py +++ b/tests/lib/cff_1_3_0/urls/_R_C_/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_author(self): assert apalike_object().add_author().author == "Test author" diff --git a/tests/lib/cff_1_3_0/urls/_R_C_/test_bibtex_object.py b/tests/lib/cff_1_3_0/urls/_R_C_/test_bibtex_object.py index ad9c196f7..3f242f2d6 100644 --- a/tests/lib/cff_1_3_0/urls/_R_C_/test_bibtex_object.py +++ b/tests/lib/cff_1_3_0/urls/_R_C_/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_author(self): assert bibtex_object().add_author().author == "author = {{Test author}}" diff --git a/tests/lib/cff_1_3_0/urls/_R_C_/test_codemeta_object.py b/tests/lib/cff_1_3_0/urls/_R_C_/test_codemeta_object.py index 414e8636c..b7e10be04 100644 --- a/tests/lib/cff_1_3_0/urls/_R_C_/test_codemeta_object.py +++ b/tests/lib/cff_1_3_0/urls/_R_C_/test_codemeta_object.py @@ -18,16 +18,12 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_check_cffobj(self): codemeta_object().check_cffobj() # doesn't need an assert def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert codemeta_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert codemeta_object().add_urls().code_repository == "https://github.com/the-url-from-repository-code" diff --git a/tests/lib/cff_1_3_0/urls/_R_C_/test_endnote_object.py b/tests/lib/cff_1_3_0/urls/_R_C_/test_endnote_object.py index 38cdcb0f1..c9745e7c0 100644 --- a/tests/lib/cff_1_3_0/urls/_R_C_/test_endnote_object.py +++ b/tests/lib/cff_1_3_0/urls/_R_C_/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_check_cffobj(self): endnote_object().check_cffobj() # doesn't need an assert diff --git a/tests/lib/cff_1_3_0/urls/_R_C_/test_ris_object.py b/tests/lib/cff_1_3_0/urls/_R_C_/test_ris_object.py index 0ae17d765..15b1d5282 100644 --- a/tests/lib/cff_1_3_0/urls/_R_C_/test_ris_object.py +++ b/tests/lib/cff_1_3_0/urls/_R_C_/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_3_0/urls/_R_C_/test_schemaorg_object.py b/tests/lib/cff_1_3_0/urls/_R_C_/test_schemaorg_object.py index 90da44d90..f0774dc4b 100644 --- a/tests/lib/cff_1_3_0/urls/_R_C_/test_schemaorg_object.py +++ b/tests/lib/cff_1_3_0/urls/_R_C_/test_schemaorg_object.py @@ -18,16 +18,12 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_check_cffobj(self): schemaorg_object().check_cffobj() # doesn't need an assert def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert schemaorg_object().add_urls().code_repository == "https://github.com/the-url-from-repository-code" diff --git a/tests/lib/cff_1_3_0/urls/_R_C_/test_zenodo_object.py b/tests/lib/cff_1_3_0/urls/_R_C_/test_zenodo_object.py index 4f58aa846..df4e5be60 100644 --- a/tests/lib/cff_1_3_0/urls/_R_C_/test_zenodo_object.py +++ b/tests/lib/cff_1_3_0/urls/_R_C_/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,9 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [{ - "name": "Test author" - }] + assert zenodo_object().add_creators().creators == [{"name": "Test author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None @@ -48,15 +45,18 @@ def test_publication_date(self): assert zenodo_object().add_publication_date().publication_date is None def test_related_identifiers(self): - assert zenodo_object().add_related_identifiers().related_identifiers == [{ - "identifier": "https://github.com/the-url-from-repository", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-repository-code", - "relation": "isSupplementedBy", - "scheme": "url" - }] + assert zenodo_object().add_related_identifiers().related_identifiers == [ + { + "identifier": "https://github.com/the-url-from-repository", + "relation": "isSupplementedBy", + "scheme": "url", + }, + { + "identifier": "https://github.com/the-url-from-repository-code", + "relation": "isSupplementedBy", + "scheme": "url", + }, + ] def test_title(self): assert zenodo_object().add_title().title == "Test title" diff --git a/tests/lib/cff_1_3_0/urls/_R__U/test_apalike_object.py b/tests/lib/cff_1_3_0/urls/_R__U/test_apalike_object.py index b02775d60..eb107af42 100644 --- a/tests/lib/cff_1_3_0/urls/_R__U/test_apalike_object.py +++ b/tests/lib/cff_1_3_0/urls/_R__U/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_author(self): assert apalike_object().add_author().author == "Test author" diff --git a/tests/lib/cff_1_3_0/urls/_R__U/test_bibtex_object.py b/tests/lib/cff_1_3_0/urls/_R__U/test_bibtex_object.py index 14fd511a2..abc1c8141 100644 --- a/tests/lib/cff_1_3_0/urls/_R__U/test_bibtex_object.py +++ b/tests/lib/cff_1_3_0/urls/_R__U/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_author(self): assert bibtex_object().add_author().author == "author = {{Test author}}" diff --git a/tests/lib/cff_1_3_0/urls/_R__U/test_codemeta_object.py b/tests/lib/cff_1_3_0/urls/_R__U/test_codemeta_object.py index 6842fdded..9b6faa3c3 100644 --- a/tests/lib/cff_1_3_0/urls/_R__U/test_codemeta_object.py +++ b/tests/lib/cff_1_3_0/urls/_R__U/test_codemeta_object.py @@ -18,16 +18,12 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_check_cffobj(self): codemeta_object().check_cffobj() # doesn't need an assert def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert codemeta_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert codemeta_object().add_urls().code_repository == "https://github.com/the-url-from-repository" diff --git a/tests/lib/cff_1_3_0/urls/_R__U/test_endnote_object.py b/tests/lib/cff_1_3_0/urls/_R__U/test_endnote_object.py index f1a5326ae..c9baf0460 100644 --- a/tests/lib/cff_1_3_0/urls/_R__U/test_endnote_object.py +++ b/tests/lib/cff_1_3_0/urls/_R__U/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_check_cffobj(self): endnote_object().check_cffobj() # doesn't need an assert diff --git a/tests/lib/cff_1_3_0/urls/_R__U/test_ris_object.py b/tests/lib/cff_1_3_0/urls/_R__U/test_ris_object.py index 0af2ca3d4..d5990d15d 100644 --- a/tests/lib/cff_1_3_0/urls/_R__U/test_ris_object.py +++ b/tests/lib/cff_1_3_0/urls/_R__U/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_3_0/urls/_R__U/test_schemaorg_object.py b/tests/lib/cff_1_3_0/urls/_R__U/test_schemaorg_object.py index e67429305..a559d2daf 100644 --- a/tests/lib/cff_1_3_0/urls/_R__U/test_schemaorg_object.py +++ b/tests/lib/cff_1_3_0/urls/_R__U/test_schemaorg_object.py @@ -18,16 +18,12 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_check_cffobj(self): schemaorg_object().check_cffobj() # doesn't need an assert def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert schemaorg_object().add_urls().code_repository == "https://github.com/the-url-from-repository" diff --git a/tests/lib/cff_1_3_0/urls/_R__U/test_zenodo_object.py b/tests/lib/cff_1_3_0/urls/_R__U/test_zenodo_object.py index bf1914f49..71183ca33 100644 --- a/tests/lib/cff_1_3_0/urls/_R__U/test_zenodo_object.py +++ b/tests/lib/cff_1_3_0/urls/_R__U/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,9 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [{ - "name": "Test author" - }] + assert zenodo_object().add_creators().creators == [{"name": "Test author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None @@ -48,15 +45,14 @@ def test_publication_date(self): assert zenodo_object().add_publication_date().publication_date is None def test_related_identifiers(self): - assert zenodo_object().add_related_identifiers().related_identifiers == [{ - "identifier": "https://github.com/the-url-from-repository", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-url", - "relation": "isSupplementedBy", - "scheme": "url" - }] + assert zenodo_object().add_related_identifiers().related_identifiers == [ + { + "identifier": "https://github.com/the-url-from-repository", + "relation": "isSupplementedBy", + "scheme": "url", + }, + {"identifier": "https://github.com/the-url-from-url", "relation": "isSupplementedBy", "scheme": "url"}, + ] def test_title(self): assert zenodo_object().add_title().title == "Test title" diff --git a/tests/lib/cff_1_3_0/urls/_R___/test_apalike_object.py b/tests/lib/cff_1_3_0/urls/_R___/test_apalike_object.py index 6fb02b8b5..f0c39ead5 100644 --- a/tests/lib/cff_1_3_0/urls/_R___/test_apalike_object.py +++ b/tests/lib/cff_1_3_0/urls/_R___/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_author(self): assert apalike_object().add_author().author == "Test author" diff --git a/tests/lib/cff_1_3_0/urls/_R___/test_bibtex_object.py b/tests/lib/cff_1_3_0/urls/_R___/test_bibtex_object.py index 2e2ef5ce3..27f30cbc7 100644 --- a/tests/lib/cff_1_3_0/urls/_R___/test_bibtex_object.py +++ b/tests/lib/cff_1_3_0/urls/_R___/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_author(self): assert bibtex_object().add_author().author == "author = {{Test author}}" diff --git a/tests/lib/cff_1_3_0/urls/_R___/test_codemeta_object.py b/tests/lib/cff_1_3_0/urls/_R___/test_codemeta_object.py index 655d5fffa..e07b9a644 100644 --- a/tests/lib/cff_1_3_0/urls/_R___/test_codemeta_object.py +++ b/tests/lib/cff_1_3_0/urls/_R___/test_codemeta_object.py @@ -18,16 +18,12 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_check_cffobj(self): codemeta_object().check_cffobj() # doesn't need an assert def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert codemeta_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert codemeta_object().add_urls().code_repository == "https://github.com/the-url-from-repository" diff --git a/tests/lib/cff_1_3_0/urls/_R___/test_endnote_object.py b/tests/lib/cff_1_3_0/urls/_R___/test_endnote_object.py index 2cdd63511..89076c1fd 100644 --- a/tests/lib/cff_1_3_0/urls/_R___/test_endnote_object.py +++ b/tests/lib/cff_1_3_0/urls/_R___/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_check_cffobj(self): endnote_object().check_cffobj() # doesn't need an assert diff --git a/tests/lib/cff_1_3_0/urls/_R___/test_ris_object.py b/tests/lib/cff_1_3_0/urls/_R___/test_ris_object.py index b3e39c586..ee8fe18fd 100644 --- a/tests/lib/cff_1_3_0/urls/_R___/test_ris_object.py +++ b/tests/lib/cff_1_3_0/urls/_R___/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_3_0/urls/_R___/test_schemaorg_object.py b/tests/lib/cff_1_3_0/urls/_R___/test_schemaorg_object.py index d5b054f8f..38a50fd90 100644 --- a/tests/lib/cff_1_3_0/urls/_R___/test_schemaorg_object.py +++ b/tests/lib/cff_1_3_0/urls/_R___/test_schemaorg_object.py @@ -18,16 +18,12 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_check_cffobj(self): schemaorg_object().check_cffobj() # doesn't need an assert def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert schemaorg_object().add_urls().code_repository == "https://github.com/the-url-from-repository" diff --git a/tests/lib/cff_1_3_0/urls/_R___/test_zenodo_object.py b/tests/lib/cff_1_3_0/urls/_R___/test_zenodo_object.py index 8f7155b2f..0115380b2 100644 --- a/tests/lib/cff_1_3_0/urls/_R___/test_zenodo_object.py +++ b/tests/lib/cff_1_3_0/urls/_R___/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,9 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [{ - "name": "Test author" - }] + assert zenodo_object().add_creators().creators == [{"name": "Test author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None @@ -48,11 +45,13 @@ def test_publication_date(self): assert zenodo_object().add_publication_date().publication_date is None def test_related_identifiers(self): - assert zenodo_object().add_related_identifiers().related_identifiers == [{ - "identifier": "https://github.com/the-url-from-repository", - "relation": "isSupplementedBy", - "scheme": "url" - }] + assert zenodo_object().add_related_identifiers().related_identifiers == [ + { + "identifier": "https://github.com/the-url-from-repository", + "relation": "isSupplementedBy", + "scheme": "url", + } + ] def test_title(self): assert zenodo_object().add_title().title == "Test title" diff --git a/tests/lib/cff_1_3_0/urls/__ACU/test_apalike_object.py b/tests/lib/cff_1_3_0/urls/__ACU/test_apalike_object.py index b02775d60..eb107af42 100644 --- a/tests/lib/cff_1_3_0/urls/__ACU/test_apalike_object.py +++ b/tests/lib/cff_1_3_0/urls/__ACU/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_author(self): assert apalike_object().add_author().author == "Test author" diff --git a/tests/lib/cff_1_3_0/urls/__ACU/test_bibtex_object.py b/tests/lib/cff_1_3_0/urls/__ACU/test_bibtex_object.py index 14fd511a2..abc1c8141 100644 --- a/tests/lib/cff_1_3_0/urls/__ACU/test_bibtex_object.py +++ b/tests/lib/cff_1_3_0/urls/__ACU/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_author(self): assert bibtex_object().add_author().author == "author = {{Test author}}" diff --git a/tests/lib/cff_1_3_0/urls/__ACU/test_codemeta_object.py b/tests/lib/cff_1_3_0/urls/__ACU/test_codemeta_object.py index c838e12bb..09056c784 100644 --- a/tests/lib/cff_1_3_0/urls/__ACU/test_codemeta_object.py +++ b/tests/lib/cff_1_3_0/urls/__ACU/test_codemeta_object.py @@ -18,16 +18,12 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_check_cffobj(self): codemeta_object().check_cffobj() # doesn't need an assert def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert codemeta_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert codemeta_object().add_urls().code_repository == "https://github.com/the-url-from-repository-code" diff --git a/tests/lib/cff_1_3_0/urls/__ACU/test_endnote_object.py b/tests/lib/cff_1_3_0/urls/__ACU/test_endnote_object.py index f1a5326ae..c9baf0460 100644 --- a/tests/lib/cff_1_3_0/urls/__ACU/test_endnote_object.py +++ b/tests/lib/cff_1_3_0/urls/__ACU/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_check_cffobj(self): endnote_object().check_cffobj() # doesn't need an assert diff --git a/tests/lib/cff_1_3_0/urls/__ACU/test_ris_object.py b/tests/lib/cff_1_3_0/urls/__ACU/test_ris_object.py index 0af2ca3d4..d5990d15d 100644 --- a/tests/lib/cff_1_3_0/urls/__ACU/test_ris_object.py +++ b/tests/lib/cff_1_3_0/urls/__ACU/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_3_0/urls/__ACU/test_schemaorg_object.py b/tests/lib/cff_1_3_0/urls/__ACU/test_schemaorg_object.py index 605a07342..7e83a6c0b 100644 --- a/tests/lib/cff_1_3_0/urls/__ACU/test_schemaorg_object.py +++ b/tests/lib/cff_1_3_0/urls/__ACU/test_schemaorg_object.py @@ -18,16 +18,12 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_check_cffobj(self): schemaorg_object().check_cffobj() # doesn't need an assert def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert schemaorg_object().add_urls().code_repository == "https://github.com/the-url-from-repository-code" diff --git a/tests/lib/cff_1_3_0/urls/__ACU/test_zenodo_object.py b/tests/lib/cff_1_3_0/urls/__ACU/test_zenodo_object.py index 7be437ccd..4b54dec20 100644 --- a/tests/lib/cff_1_3_0/urls/__ACU/test_zenodo_object.py +++ b/tests/lib/cff_1_3_0/urls/__ACU/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,9 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [{ - "name": "Test author" - }] + assert zenodo_object().add_creators().creators == [{"name": "Test author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None @@ -48,19 +45,19 @@ def test_publication_date(self): assert zenodo_object().add_publication_date().publication_date is None def test_related_identifiers(self): - assert zenodo_object().add_related_identifiers().related_identifiers == [{ - "identifier": "https://github.com/the-url-from-repository-artifact", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-repository-code", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-url", - "relation": "isSupplementedBy", - "scheme": "url" - }] + assert zenodo_object().add_related_identifiers().related_identifiers == [ + { + "identifier": "https://github.com/the-url-from-repository-artifact", + "relation": "isSupplementedBy", + "scheme": "url", + }, + { + "identifier": "https://github.com/the-url-from-repository-code", + "relation": "isSupplementedBy", + "scheme": "url", + }, + {"identifier": "https://github.com/the-url-from-url", "relation": "isSupplementedBy", "scheme": "url"}, + ] def test_title(self): assert zenodo_object().add_title().title == "Test title" diff --git a/tests/lib/cff_1_3_0/urls/__AC_/test_apalike_object.py b/tests/lib/cff_1_3_0/urls/__AC_/test_apalike_object.py index f01ae5c93..56bb63921 100644 --- a/tests/lib/cff_1_3_0/urls/__AC_/test_apalike_object.py +++ b/tests/lib/cff_1_3_0/urls/__AC_/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_author(self): assert apalike_object().add_author().author == "Test author" diff --git a/tests/lib/cff_1_3_0/urls/__AC_/test_bibtex_object.py b/tests/lib/cff_1_3_0/urls/__AC_/test_bibtex_object.py index ad9c196f7..3f242f2d6 100644 --- a/tests/lib/cff_1_3_0/urls/__AC_/test_bibtex_object.py +++ b/tests/lib/cff_1_3_0/urls/__AC_/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_author(self): assert bibtex_object().add_author().author == "author = {{Test author}}" diff --git a/tests/lib/cff_1_3_0/urls/__AC_/test_codemeta_object.py b/tests/lib/cff_1_3_0/urls/__AC_/test_codemeta_object.py index 2a55104a3..b23b76b21 100644 --- a/tests/lib/cff_1_3_0/urls/__AC_/test_codemeta_object.py +++ b/tests/lib/cff_1_3_0/urls/__AC_/test_codemeta_object.py @@ -18,16 +18,12 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_check_cffobj(self): codemeta_object().check_cffobj() # doesn't need an assert def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert codemeta_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert codemeta_object().add_urls().code_repository == "https://github.com/the-url-from-repository-code" diff --git a/tests/lib/cff_1_3_0/urls/__AC_/test_endnote_object.py b/tests/lib/cff_1_3_0/urls/__AC_/test_endnote_object.py index 38cdcb0f1..c9745e7c0 100644 --- a/tests/lib/cff_1_3_0/urls/__AC_/test_endnote_object.py +++ b/tests/lib/cff_1_3_0/urls/__AC_/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_check_cffobj(self): endnote_object().check_cffobj() # doesn't need an assert diff --git a/tests/lib/cff_1_3_0/urls/__AC_/test_ris_object.py b/tests/lib/cff_1_3_0/urls/__AC_/test_ris_object.py index 0ae17d765..15b1d5282 100644 --- a/tests/lib/cff_1_3_0/urls/__AC_/test_ris_object.py +++ b/tests/lib/cff_1_3_0/urls/__AC_/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_3_0/urls/__AC_/test_schemaorg_object.py b/tests/lib/cff_1_3_0/urls/__AC_/test_schemaorg_object.py index 325627574..073ab6a88 100644 --- a/tests/lib/cff_1_3_0/urls/__AC_/test_schemaorg_object.py +++ b/tests/lib/cff_1_3_0/urls/__AC_/test_schemaorg_object.py @@ -18,16 +18,12 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_check_cffobj(self): schemaorg_object().check_cffobj() # doesn't need an assert def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert schemaorg_object().add_urls().code_repository == "https://github.com/the-url-from-repository-code" diff --git a/tests/lib/cff_1_3_0/urls/__AC_/test_zenodo_object.py b/tests/lib/cff_1_3_0/urls/__AC_/test_zenodo_object.py index adc356a1a..657b2ae41 100644 --- a/tests/lib/cff_1_3_0/urls/__AC_/test_zenodo_object.py +++ b/tests/lib/cff_1_3_0/urls/__AC_/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,9 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [{ - "name": "Test author" - }] + assert zenodo_object().add_creators().creators == [{"name": "Test author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None @@ -48,15 +45,18 @@ def test_publication_date(self): assert zenodo_object().add_publication_date().publication_date is None def test_related_identifiers(self): - assert zenodo_object().add_related_identifiers().related_identifiers == [{ - "identifier": "https://github.com/the-url-from-repository-artifact", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-repository-code", - "relation": "isSupplementedBy", - "scheme": "url" - }] + assert zenodo_object().add_related_identifiers().related_identifiers == [ + { + "identifier": "https://github.com/the-url-from-repository-artifact", + "relation": "isSupplementedBy", + "scheme": "url", + }, + { + "identifier": "https://github.com/the-url-from-repository-code", + "relation": "isSupplementedBy", + "scheme": "url", + }, + ] def test_title(self): assert zenodo_object().add_title().title == "Test title" diff --git a/tests/lib/cff_1_3_0/urls/__A_U/test_apalike_object.py b/tests/lib/cff_1_3_0/urls/__A_U/test_apalike_object.py index b02775d60..eb107af42 100644 --- a/tests/lib/cff_1_3_0/urls/__A_U/test_apalike_object.py +++ b/tests/lib/cff_1_3_0/urls/__A_U/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_author(self): assert apalike_object().add_author().author == "Test author" diff --git a/tests/lib/cff_1_3_0/urls/__A_U/test_bibtex_object.py b/tests/lib/cff_1_3_0/urls/__A_U/test_bibtex_object.py index 14fd511a2..abc1c8141 100644 --- a/tests/lib/cff_1_3_0/urls/__A_U/test_bibtex_object.py +++ b/tests/lib/cff_1_3_0/urls/__A_U/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_author(self): assert bibtex_object().add_author().author == "author = {{Test author}}" diff --git a/tests/lib/cff_1_3_0/urls/__A_U/test_codemeta_object.py b/tests/lib/cff_1_3_0/urls/__A_U/test_codemeta_object.py index 57f792f43..e3196da78 100644 --- a/tests/lib/cff_1_3_0/urls/__A_U/test_codemeta_object.py +++ b/tests/lib/cff_1_3_0/urls/__A_U/test_codemeta_object.py @@ -18,16 +18,12 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_check_cffobj(self): codemeta_object().check_cffobj() # doesn't need an assert def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert codemeta_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert codemeta_object().add_urls().code_repository is None diff --git a/tests/lib/cff_1_3_0/urls/__A_U/test_endnote_object.py b/tests/lib/cff_1_3_0/urls/__A_U/test_endnote_object.py index f1a5326ae..c9baf0460 100644 --- a/tests/lib/cff_1_3_0/urls/__A_U/test_endnote_object.py +++ b/tests/lib/cff_1_3_0/urls/__A_U/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_check_cffobj(self): endnote_object().check_cffobj() # doesn't need an assert diff --git a/tests/lib/cff_1_3_0/urls/__A_U/test_ris_object.py b/tests/lib/cff_1_3_0/urls/__A_U/test_ris_object.py index 0af2ca3d4..d5990d15d 100644 --- a/tests/lib/cff_1_3_0/urls/__A_U/test_ris_object.py +++ b/tests/lib/cff_1_3_0/urls/__A_U/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_3_0/urls/__A_U/test_schemaorg_object.py b/tests/lib/cff_1_3_0/urls/__A_U/test_schemaorg_object.py index 27751c3b4..eff3e761d 100644 --- a/tests/lib/cff_1_3_0/urls/__A_U/test_schemaorg_object.py +++ b/tests/lib/cff_1_3_0/urls/__A_U/test_schemaorg_object.py @@ -18,16 +18,12 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_check_cffobj(self): schemaorg_object().check_cffobj() # doesn't need an assert def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert schemaorg_object().add_urls().code_repository is None diff --git a/tests/lib/cff_1_3_0/urls/__A_U/test_zenodo_object.py b/tests/lib/cff_1_3_0/urls/__A_U/test_zenodo_object.py index db17cf407..c800aa741 100644 --- a/tests/lib/cff_1_3_0/urls/__A_U/test_zenodo_object.py +++ b/tests/lib/cff_1_3_0/urls/__A_U/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,9 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [{ - "name": "Test author" - }] + assert zenodo_object().add_creators().creators == [{"name": "Test author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None @@ -48,15 +45,14 @@ def test_publication_date(self): assert zenodo_object().add_publication_date().publication_date is None def test_related_identifiers(self): - assert zenodo_object().add_related_identifiers().related_identifiers == [{ - "identifier": "https://github.com/the-url-from-repository-artifact", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-url", - "relation": "isSupplementedBy", - "scheme": "url" - }] + assert zenodo_object().add_related_identifiers().related_identifiers == [ + { + "identifier": "https://github.com/the-url-from-repository-artifact", + "relation": "isSupplementedBy", + "scheme": "url", + }, + {"identifier": "https://github.com/the-url-from-url", "relation": "isSupplementedBy", "scheme": "url"}, + ] def test_title(self): assert zenodo_object().add_title().title == "Test title" diff --git a/tests/lib/cff_1_3_0/urls/__A__/test_apalike_object.py b/tests/lib/cff_1_3_0/urls/__A__/test_apalike_object.py index a624a9fa2..c630480eb 100644 --- a/tests/lib/cff_1_3_0/urls/__A__/test_apalike_object.py +++ b/tests/lib/cff_1_3_0/urls/__A__/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_author(self): assert apalike_object().add_author().author == "Test author" diff --git a/tests/lib/cff_1_3_0/urls/__A__/test_bibtex_object.py b/tests/lib/cff_1_3_0/urls/__A__/test_bibtex_object.py index f217771fe..32c963de3 100644 --- a/tests/lib/cff_1_3_0/urls/__A__/test_bibtex_object.py +++ b/tests/lib/cff_1_3_0/urls/__A__/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_author(self): assert bibtex_object().add_author().author == "author = {{Test author}}" diff --git a/tests/lib/cff_1_3_0/urls/__A__/test_codemeta_object.py b/tests/lib/cff_1_3_0/urls/__A__/test_codemeta_object.py index 992fb1e49..7bb75a53a 100644 --- a/tests/lib/cff_1_3_0/urls/__A__/test_codemeta_object.py +++ b/tests/lib/cff_1_3_0/urls/__A__/test_codemeta_object.py @@ -18,16 +18,12 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_check_cffobj(self): codemeta_object().check_cffobj() # doesn't need an assert def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert codemeta_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert codemeta_object().add_urls().code_repository is None diff --git a/tests/lib/cff_1_3_0/urls/__A__/test_endnote_object.py b/tests/lib/cff_1_3_0/urls/__A__/test_endnote_object.py index 7bd5d5289..e044b2af4 100644 --- a/tests/lib/cff_1_3_0/urls/__A__/test_endnote_object.py +++ b/tests/lib/cff_1_3_0/urls/__A__/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_check_cffobj(self): endnote_object().check_cffobj() # doesn't need an assert diff --git a/tests/lib/cff_1_3_0/urls/__A__/test_ris_object.py b/tests/lib/cff_1_3_0/urls/__A__/test_ris_object.py index 4891c4ac5..93268a84c 100644 --- a/tests/lib/cff_1_3_0/urls/__A__/test_ris_object.py +++ b/tests/lib/cff_1_3_0/urls/__A__/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_3_0/urls/__A__/test_schemaorg_object.py b/tests/lib/cff_1_3_0/urls/__A__/test_schemaorg_object.py index 84f556c2a..098d9c298 100644 --- a/tests/lib/cff_1_3_0/urls/__A__/test_schemaorg_object.py +++ b/tests/lib/cff_1_3_0/urls/__A__/test_schemaorg_object.py @@ -18,16 +18,12 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_check_cffobj(self): schemaorg_object().check_cffobj() # doesn't need an assert def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert schemaorg_object().add_urls().code_repository is None diff --git a/tests/lib/cff_1_3_0/urls/__A__/test_zenodo_object.py b/tests/lib/cff_1_3_0/urls/__A__/test_zenodo_object.py index 579e101a9..b163da45f 100644 --- a/tests/lib/cff_1_3_0/urls/__A__/test_zenodo_object.py +++ b/tests/lib/cff_1_3_0/urls/__A__/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,9 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [{ - "name": "Test author" - }] + assert zenodo_object().add_creators().creators == [{"name": "Test author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None @@ -48,11 +45,13 @@ def test_publication_date(self): assert zenodo_object().add_publication_date().publication_date is None def test_related_identifiers(self): - assert zenodo_object().add_related_identifiers().related_identifiers == [{ - "identifier": "https://github.com/the-url-from-repository-artifact", - "relation": "isSupplementedBy", - "scheme": "url" - }] + assert zenodo_object().add_related_identifiers().related_identifiers == [ + { + "identifier": "https://github.com/the-url-from-repository-artifact", + "relation": "isSupplementedBy", + "scheme": "url", + } + ] def test_title(self): assert zenodo_object().add_title().title == "Test title" diff --git a/tests/lib/cff_1_3_0/urls/___CU/test_apalike_object.py b/tests/lib/cff_1_3_0/urls/___CU/test_apalike_object.py index b02775d60..eb107af42 100644 --- a/tests/lib/cff_1_3_0/urls/___CU/test_apalike_object.py +++ b/tests/lib/cff_1_3_0/urls/___CU/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_author(self): assert apalike_object().add_author().author == "Test author" diff --git a/tests/lib/cff_1_3_0/urls/___CU/test_bibtex_object.py b/tests/lib/cff_1_3_0/urls/___CU/test_bibtex_object.py index 14fd511a2..abc1c8141 100644 --- a/tests/lib/cff_1_3_0/urls/___CU/test_bibtex_object.py +++ b/tests/lib/cff_1_3_0/urls/___CU/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_author(self): assert bibtex_object().add_author().author == "author = {{Test author}}" diff --git a/tests/lib/cff_1_3_0/urls/___CU/test_codemeta_object.py b/tests/lib/cff_1_3_0/urls/___CU/test_codemeta_object.py index c838e12bb..09056c784 100644 --- a/tests/lib/cff_1_3_0/urls/___CU/test_codemeta_object.py +++ b/tests/lib/cff_1_3_0/urls/___CU/test_codemeta_object.py @@ -18,16 +18,12 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_check_cffobj(self): codemeta_object().check_cffobj() # doesn't need an assert def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert codemeta_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert codemeta_object().add_urls().code_repository == "https://github.com/the-url-from-repository-code" diff --git a/tests/lib/cff_1_3_0/urls/___CU/test_endnote_object.py b/tests/lib/cff_1_3_0/urls/___CU/test_endnote_object.py index f1a5326ae..c9baf0460 100644 --- a/tests/lib/cff_1_3_0/urls/___CU/test_endnote_object.py +++ b/tests/lib/cff_1_3_0/urls/___CU/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_check_cffobj(self): endnote_object().check_cffobj() # doesn't need an assert diff --git a/tests/lib/cff_1_3_0/urls/___CU/test_ris_object.py b/tests/lib/cff_1_3_0/urls/___CU/test_ris_object.py index 0af2ca3d4..d5990d15d 100644 --- a/tests/lib/cff_1_3_0/urls/___CU/test_ris_object.py +++ b/tests/lib/cff_1_3_0/urls/___CU/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_3_0/urls/___CU/test_schemaorg_object.py b/tests/lib/cff_1_3_0/urls/___CU/test_schemaorg_object.py index 605a07342..7e83a6c0b 100644 --- a/tests/lib/cff_1_3_0/urls/___CU/test_schemaorg_object.py +++ b/tests/lib/cff_1_3_0/urls/___CU/test_schemaorg_object.py @@ -18,16 +18,12 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_check_cffobj(self): schemaorg_object().check_cffobj() # doesn't need an assert def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert schemaorg_object().add_urls().code_repository == "https://github.com/the-url-from-repository-code" diff --git a/tests/lib/cff_1_3_0/urls/___CU/test_zenodo_object.py b/tests/lib/cff_1_3_0/urls/___CU/test_zenodo_object.py index 9012b63df..d8b3767aa 100644 --- a/tests/lib/cff_1_3_0/urls/___CU/test_zenodo_object.py +++ b/tests/lib/cff_1_3_0/urls/___CU/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,9 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [{ - "name": "Test author" - }] + assert zenodo_object().add_creators().creators == [{"name": "Test author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None @@ -48,15 +45,14 @@ def test_publication_date(self): assert zenodo_object().add_publication_date().publication_date is None def test_related_identifiers(self): - assert zenodo_object().add_related_identifiers().related_identifiers == [{ - "identifier": "https://github.com/the-url-from-repository-code", - "relation": "isSupplementedBy", - "scheme": "url" - }, { - "identifier": "https://github.com/the-url-from-url", - "relation": "isSupplementedBy", - "scheme": "url" - }] + assert zenodo_object().add_related_identifiers().related_identifiers == [ + { + "identifier": "https://github.com/the-url-from-repository-code", + "relation": "isSupplementedBy", + "scheme": "url", + }, + {"identifier": "https://github.com/the-url-from-url", "relation": "isSupplementedBy", "scheme": "url"}, + ] def test_title(self): assert zenodo_object().add_title().title == "Test title" diff --git a/tests/lib/cff_1_3_0/urls/___C_/test_apalike_object.py b/tests/lib/cff_1_3_0/urls/___C_/test_apalike_object.py index f01ae5c93..56bb63921 100644 --- a/tests/lib/cff_1_3_0/urls/___C_/test_apalike_object.py +++ b/tests/lib/cff_1_3_0/urls/___C_/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_author(self): assert apalike_object().add_author().author == "Test author" diff --git a/tests/lib/cff_1_3_0/urls/___C_/test_bibtex_object.py b/tests/lib/cff_1_3_0/urls/___C_/test_bibtex_object.py index ad9c196f7..3f242f2d6 100644 --- a/tests/lib/cff_1_3_0/urls/___C_/test_bibtex_object.py +++ b/tests/lib/cff_1_3_0/urls/___C_/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_author(self): assert bibtex_object().add_author().author == "author = {{Test author}}" diff --git a/tests/lib/cff_1_3_0/urls/___C_/test_codemeta_object.py b/tests/lib/cff_1_3_0/urls/___C_/test_codemeta_object.py index 80ce346af..a4853fd73 100644 --- a/tests/lib/cff_1_3_0/urls/___C_/test_codemeta_object.py +++ b/tests/lib/cff_1_3_0/urls/___C_/test_codemeta_object.py @@ -18,16 +18,12 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_check_cffobj(self): codemeta_object().check_cffobj() # doesn't need an assert def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert codemeta_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert codemeta_object().add_urls().code_repository == "https://github.com/the-url-from-repository-code" diff --git a/tests/lib/cff_1_3_0/urls/___C_/test_endnote_object.py b/tests/lib/cff_1_3_0/urls/___C_/test_endnote_object.py index 38cdcb0f1..c9745e7c0 100644 --- a/tests/lib/cff_1_3_0/urls/___C_/test_endnote_object.py +++ b/tests/lib/cff_1_3_0/urls/___C_/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_check_cffobj(self): endnote_object().check_cffobj() # doesn't need an assert diff --git a/tests/lib/cff_1_3_0/urls/___C_/test_ris_object.py b/tests/lib/cff_1_3_0/urls/___C_/test_ris_object.py index 0ae17d765..15b1d5282 100644 --- a/tests/lib/cff_1_3_0/urls/___C_/test_ris_object.py +++ b/tests/lib/cff_1_3_0/urls/___C_/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_3_0/urls/___C_/test_schemaorg_object.py b/tests/lib/cff_1_3_0/urls/___C_/test_schemaorg_object.py index 86d627a8e..b1b860588 100644 --- a/tests/lib/cff_1_3_0/urls/___C_/test_schemaorg_object.py +++ b/tests/lib/cff_1_3_0/urls/___C_/test_schemaorg_object.py @@ -18,16 +18,12 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_check_cffobj(self): schemaorg_object().check_cffobj() # doesn't need an assert def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert schemaorg_object().add_urls().code_repository == "https://github.com/the-url-from-repository-code" diff --git a/tests/lib/cff_1_3_0/urls/___C_/test_zenodo_object.py b/tests/lib/cff_1_3_0/urls/___C_/test_zenodo_object.py index bd599c435..17402eaf8 100644 --- a/tests/lib/cff_1_3_0/urls/___C_/test_zenodo_object.py +++ b/tests/lib/cff_1_3_0/urls/___C_/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,9 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [{ - "name": "Test author" - }] + assert zenodo_object().add_creators().creators == [{"name": "Test author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None @@ -48,11 +45,13 @@ def test_publication_date(self): assert zenodo_object().add_publication_date().publication_date is None def test_related_identifiers(self): - assert zenodo_object().add_related_identifiers().related_identifiers == [{ - "identifier": "https://github.com/the-url-from-repository-code", - "relation": "isSupplementedBy", - "scheme": "url" - }] + assert zenodo_object().add_related_identifiers().related_identifiers == [ + { + "identifier": "https://github.com/the-url-from-repository-code", + "relation": "isSupplementedBy", + "scheme": "url", + } + ] def test_title(self): assert zenodo_object().add_title().title == "Test title" diff --git a/tests/lib/cff_1_3_0/urls/____U/test_apalike_object.py b/tests/lib/cff_1_3_0/urls/____U/test_apalike_object.py index b02775d60..eb107af42 100644 --- a/tests/lib/cff_1_3_0/urls/____U/test_apalike_object.py +++ b/tests/lib/cff_1_3_0/urls/____U/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_author(self): assert apalike_object().add_author().author == "Test author" diff --git a/tests/lib/cff_1_3_0/urls/____U/test_bibtex_object.py b/tests/lib/cff_1_3_0/urls/____U/test_bibtex_object.py index 14fd511a2..abc1c8141 100644 --- a/tests/lib/cff_1_3_0/urls/____U/test_bibtex_object.py +++ b/tests/lib/cff_1_3_0/urls/____U/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_author(self): assert bibtex_object().add_author().author == "author = {{Test author}}" diff --git a/tests/lib/cff_1_3_0/urls/____U/test_codemeta_object.py b/tests/lib/cff_1_3_0/urls/____U/test_codemeta_object.py index 57f792f43..e3196da78 100644 --- a/tests/lib/cff_1_3_0/urls/____U/test_codemeta_object.py +++ b/tests/lib/cff_1_3_0/urls/____U/test_codemeta_object.py @@ -18,16 +18,12 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_check_cffobj(self): codemeta_object().check_cffobj() # doesn't need an assert def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert codemeta_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert codemeta_object().add_urls().code_repository is None diff --git a/tests/lib/cff_1_3_0/urls/____U/test_endnote_object.py b/tests/lib/cff_1_3_0/urls/____U/test_endnote_object.py index f1a5326ae..c9baf0460 100644 --- a/tests/lib/cff_1_3_0/urls/____U/test_endnote_object.py +++ b/tests/lib/cff_1_3_0/urls/____U/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_check_cffobj(self): endnote_object().check_cffobj() # doesn't need an assert diff --git a/tests/lib/cff_1_3_0/urls/____U/test_ris_object.py b/tests/lib/cff_1_3_0/urls/____U/test_ris_object.py index 0af2ca3d4..d5990d15d 100644 --- a/tests/lib/cff_1_3_0/urls/____U/test_ris_object.py +++ b/tests/lib/cff_1_3_0/urls/____U/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_3_0/urls/____U/test_schemaorg_object.py b/tests/lib/cff_1_3_0/urls/____U/test_schemaorg_object.py index 27751c3b4..eff3e761d 100644 --- a/tests/lib/cff_1_3_0/urls/____U/test_schemaorg_object.py +++ b/tests/lib/cff_1_3_0/urls/____U/test_schemaorg_object.py @@ -18,16 +18,12 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_check_cffobj(self): schemaorg_object().check_cffobj() # doesn't need an assert def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert schemaorg_object().add_urls().code_repository is None diff --git a/tests/lib/cff_1_3_0/urls/____U/test_zenodo_object.py b/tests/lib/cff_1_3_0/urls/____U/test_zenodo_object.py index 484b4d2e6..99a762a8a 100644 --- a/tests/lib/cff_1_3_0/urls/____U/test_zenodo_object.py +++ b/tests/lib/cff_1_3_0/urls/____U/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,9 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [{ - "name": "Test author" - }] + assert zenodo_object().add_creators().creators == [{"name": "Test author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None @@ -48,11 +45,9 @@ def test_publication_date(self): assert zenodo_object().add_publication_date().publication_date is None def test_related_identifiers(self): - assert zenodo_object().add_related_identifiers().related_identifiers == [{ - "identifier": "https://github.com/the-url-from-url", - "relation": "isSupplementedBy", - "scheme": "url" - }] + assert zenodo_object().add_related_identifiers().related_identifiers == [ + {"identifier": "https://github.com/the-url-from-url", "relation": "isSupplementedBy", "scheme": "url"} + ] def test_title(self): assert zenodo_object().add_title().title == "Test title" diff --git a/tests/lib/cff_1_3_0/urls/_____/test_apalike_object.py b/tests/lib/cff_1_3_0/urls/_____/test_apalike_object.py index 2f847923b..ce06dc962 100644 --- a/tests/lib/cff_1_3_0/urls/_____/test_apalike_object.py +++ b/tests/lib/cff_1_3_0/urls/_____/test_apalike_object.py @@ -18,7 +18,6 @@ def apalike_object(): @pytest.mark.lib @pytest.mark.apalike class TestApalikeObject(Contract): - def test_author(self): assert apalike_object().add_author().author == "Test author" diff --git a/tests/lib/cff_1_3_0/urls/_____/test_bibtex_object.py b/tests/lib/cff_1_3_0/urls/_____/test_bibtex_object.py index 834635805..410730612 100644 --- a/tests/lib/cff_1_3_0/urls/_____/test_bibtex_object.py +++ b/tests/lib/cff_1_3_0/urls/_____/test_bibtex_object.py @@ -18,7 +18,6 @@ def bibtex_object(): @pytest.mark.lib @pytest.mark.bibtex class TestBibtexObject(Contract): - def test_author(self): assert bibtex_object().add_author().author == "author = {{Test author}}" diff --git a/tests/lib/cff_1_3_0/urls/_____/test_codemeta_object.py b/tests/lib/cff_1_3_0/urls/_____/test_codemeta_object.py index 53d8a366d..7fcfcf192 100644 --- a/tests/lib/cff_1_3_0/urls/_____/test_codemeta_object.py +++ b/tests/lib/cff_1_3_0/urls/_____/test_codemeta_object.py @@ -18,16 +18,12 @@ def codemeta_object(): @pytest.mark.lib @pytest.mark.codemeta class TestCodemetaObject(Contract): - def test_check_cffobj(self): codemeta_object().check_cffobj() # doesn't need an assert def test_author(self): - assert codemeta_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert codemeta_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert codemeta_object().add_urls().code_repository is None diff --git a/tests/lib/cff_1_3_0/urls/_____/test_endnote_object.py b/tests/lib/cff_1_3_0/urls/_____/test_endnote_object.py index ecb6801b9..e8b387c32 100644 --- a/tests/lib/cff_1_3_0/urls/_____/test_endnote_object.py +++ b/tests/lib/cff_1_3_0/urls/_____/test_endnote_object.py @@ -18,7 +18,6 @@ def endnote_object(): @pytest.mark.lib @pytest.mark.endnote class TestEndnoteObject(Contract): - def test_check_cffobj(self): endnote_object().check_cffobj() # doesn't need an assert diff --git a/tests/lib/cff_1_3_0/urls/_____/test_ris_object.py b/tests/lib/cff_1_3_0/urls/_____/test_ris_object.py index d09cf4240..864b4c661 100644 --- a/tests/lib/cff_1_3_0/urls/_____/test_ris_object.py +++ b/tests/lib/cff_1_3_0/urls/_____/test_ris_object.py @@ -18,7 +18,6 @@ def ris_object(): @pytest.mark.lib @pytest.mark.ris class TestRisObject(Contract): - def test_abstract(self): assert ris_object().add_abstract().abstract is None diff --git a/tests/lib/cff_1_3_0/urls/_____/test_schemaorg_object.py b/tests/lib/cff_1_3_0/urls/_____/test_schemaorg_object.py index 987580a38..9e1015433 100644 --- a/tests/lib/cff_1_3_0/urls/_____/test_schemaorg_object.py +++ b/tests/lib/cff_1_3_0/urls/_____/test_schemaorg_object.py @@ -18,16 +18,12 @@ def schemaorg_object(): @pytest.mark.lib @pytest.mark.schemaorg class TestSchemaorgObject(Contract): - def test_check_cffobj(self): schemaorg_object().check_cffobj() # doesn't need an assert def test_author(self): - assert schemaorg_object().add_author().author == [{ - "@type": "Organization", - "name": "Test author" - }] + assert schemaorg_object().add_author().author == [{"@type": "Organization", "name": "Test author"}] def test_code_repository(self): assert schemaorg_object().add_urls().code_repository is None diff --git a/tests/lib/cff_1_3_0/urls/_____/test_zenodo_object.py b/tests/lib/cff_1_3_0/urls/_____/test_zenodo_object.py index 611278684..e9c0e136c 100644 --- a/tests/lib/cff_1_3_0/urls/_____/test_zenodo_object.py +++ b/tests/lib/cff_1_3_0/urls/_____/test_zenodo_object.py @@ -18,7 +18,6 @@ def zenodo_object(): @pytest.mark.lib @pytest.mark.zenodo class TestZenodoObject(Contract): - def test_as_string(self): actual_zenodo = zenodo_object().add_all().as_string() fixture = os.path.join(os.path.dirname(__file__), ".zenodo.json") @@ -34,9 +33,7 @@ def test_contributors(self): assert zenodo_object().add_contributors().contributors is None def test_creators(self): - assert zenodo_object().add_creators().creators == [{ - "name": "Test author" - }] + assert zenodo_object().add_creators().creators == [{"name": "Test author"}] def test_keywords(self): assert zenodo_object().add_keywords().keywords is None diff --git a/tests/lib/cff_1_x_x/authors/get_every_key.py b/tests/lib/cff_1_x_x/authors/get_every_key.py index e77b357eb..3fa399129 100644 --- a/tests/lib/cff_1_x_x/authors/get_every_key.py +++ b/tests/lib/cff_1_x_x/authors/get_every_key.py @@ -16,6 +16,6 @@ def get_every_key(): name_values, affiliation_values, orcid_values, - email_values + email_values, ] return ["".join(combo) for combo in itertools.product(*combined)] diff --git a/tests/lib/cff_1_x_x/urls/get_every_key.py b/tests/lib/cff_1_x_x/urls/get_every_key.py index 85b240be9..45349e263 100644 --- a/tests/lib/cff_1_x_x/urls/get_every_key.py +++ b/tests/lib/cff_1_x_x/urls/get_every_key.py @@ -12,6 +12,6 @@ def get_every_key(): repository_values, repository_artifact_values, repository_code_values, - url_values + url_values, ] return ["".join(combo) for combo in itertools.product(*combined)] diff --git a/tests/lib/contracts/apalike.py b/tests/lib/contracts/apalike.py index ed401a5ac..ab0ee9fa0 100644 --- a/tests/lib/contracts/apalike.py +++ b/tests/lib/contracts/apalike.py @@ -3,7 +3,6 @@ class Contract(ABC): - @abstractmethod def test_author(self): pass diff --git a/tests/lib/contracts/bibtex.py b/tests/lib/contracts/bibtex.py index 389d9b1e4..cdc23802b 100644 --- a/tests/lib/contracts/bibtex.py +++ b/tests/lib/contracts/bibtex.py @@ -3,7 +3,6 @@ class Contract(ABC): - @abstractmethod def test_author(self): pass diff --git a/tests/lib/contracts/codemeta.py b/tests/lib/contracts/codemeta.py index c0cae4232..a39c222bc 100644 --- a/tests/lib/contracts/codemeta.py +++ b/tests/lib/contracts/codemeta.py @@ -3,7 +3,6 @@ class Contract(ABC): - @abstractmethod def test_check_cffobj(self): pass diff --git a/tests/lib/contracts/endnote.py b/tests/lib/contracts/endnote.py index 733bf21f1..7ef895849 100644 --- a/tests/lib/contracts/endnote.py +++ b/tests/lib/contracts/endnote.py @@ -3,7 +3,6 @@ class Contract(ABC): - @abstractmethod def test_check_cffobj(self): pass diff --git a/tests/lib/contracts/ris.py b/tests/lib/contracts/ris.py index 9aba259cc..d6d0c4575 100644 --- a/tests/lib/contracts/ris.py +++ b/tests/lib/contracts/ris.py @@ -3,7 +3,6 @@ class Contract(ABC): - @abstractmethod def test_abstract(self): pass diff --git a/tests/lib/contracts/schemaorg.py b/tests/lib/contracts/schemaorg.py index ec1a7d382..c5f5a3381 100644 --- a/tests/lib/contracts/schemaorg.py +++ b/tests/lib/contracts/schemaorg.py @@ -3,7 +3,6 @@ class Contract(ABC): - @abstractmethod def test_check_cffobj(self): pass diff --git a/tests/lib/contracts/zenodo.py b/tests/lib/contracts/zenodo.py index f9e4aca0b..e4e10aaaf 100644 --- a/tests/lib/contracts/zenodo.py +++ b/tests/lib/contracts/zenodo.py @@ -3,7 +3,6 @@ class Contract(ABC): - @abstractmethod def test_check_cffobj(self): pass diff --git a/tests/test_consistent_versioning.py b/tests/test_consistent_versioning.py index 383032d91..732a293aa 100644 --- a/tests/test_consistent_versioning.py +++ b/tests/test_consistent_versioning.py @@ -69,8 +69,9 @@ def test_readme_dev_md_3(): fixture = os.path.join(os.path.dirname(__file__), "..", "README.dev.md") with open(fixture, "rt", encoding="utf-8") as fid: file_contents = fid.read() - regex = re.compile(r"^docker tag cffconvert:(?P\S*) citationcff/" + - r"cffconvert:(?P\S*)$", re.MULTILINE) + regex = re.compile( + r"^docker tag cffconvert:(?P\S*) citationcff/" + r"cffconvert:(?P\S*)$", re.MULTILINE + ) actual_version_1 = re.search(regex, file_contents)["version1"] actual_version_2 = re.search(regex, file_contents)["version2"] assert actual_version_1 == expected_version