コード例 #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()
コード例 #2
0
ファイル: ft_init.py プロジェクト: wucucu/spdxLicenseManager
    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)
コード例 #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)
コード例 #4
0
 def setUp(self):
     self.runner = CliRunner()
     setUpSandbox(self, slm.cli)
     runSandboxCommands(self, slm.cli)