def setUp(self): self.runner = CliRunner() setUpSandbox(self, slm.cli) runSandboxCommands(self, slm.cli) # set up temp directory for outputting reports self.reportDir = TempDirectory()
def setUp(self): self.runner = CliRunner() # set up initial temp directory self.maintd = TempDirectory() self.mainsandboxPath = os.path.join(self.maintd.path, "sandbox") # also create a real sandbox for the "existing SLM" test setUpSandbox(self, slm.cli) runSandboxCommands(self, slm.cli)
def setUp(self): self.runner = CliRunner() setUpSandbox(self, slm.cli) runSandboxCommands(self, slm.cli) # set up temp directory for where SPDX files will be retrieved from self.spdxSearchDir = TempDirectory() # copy SPDX test files there shutil.copy(os.path.join("tests", "testfiles", SPDX_CORRECT_FILE), self.spdxSearchDir.path) shutil.copy(os.path.join("tests", "testfiles", SPDX_NO_NAME), self.spdxSearchDir.path) shutil.copy(os.path.join("tests", "testfiles", SPDX_NO_DATE), self.spdxSearchDir.path)
def setUp(self): self.runner = CliRunner() setUpSandbox(self, slm.cli) runSandboxCommands(self, slm.cli)