Exemplo n.º 1
0
  def setUp(self):
    self.runner = CliRunner()
    setUpSandbox(self, slm.cli)
    runSandboxCommands(self, slm.cli)

    # set up temp directory for outputting reports
    self.reportDir = TempDirectory()
Exemplo n.º 2
0
    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)
Exemplo n.º 3
0
    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)
Exemplo n.º 4
0
 def setUp(self):
     self.runner = CliRunner()
     setUpSandbox(self, slm.cli)
     runSandboxCommands(self, slm.cli)