Hello everyone^^, I'm writing a function to keep t...
# tools
y
Hello everyone^^, I'm writing a function to keep the README.md and ro-crate-metadata.json synchronized. I then want to write some new tests for the pipelines lint. Does anyone have an idea of how to efficiently pass the CLI param into the test script? More specifically, I want to test when the
--fix
is provided, the function would synchronize the content of both files and return "passed". In the function itself I used
Copy code
if self.fix:
    ...
    passed.append("Mismatch fixed: RO-Crate description updated from README.md.")
...
But how can I set the CLI param in the test script? (say I have a Testlint obj for the tests)
Copy code
class TestLintROcrateReadmeSync(TestLint):
    def test_rocrate_readme_sync_fix(self):
        self.lint_obj._load()
        ???