def setUp(self): self.testDir = tempfile.mkdtemp() self.tempFile = self.create_test_install_file() self.invalidTempFile = self.create_invalid_test_install_file() self.invalid_extension_file = self.create_invalid_file_extension_install_file( ) Logger.disable_all()
def setUp(self): self.create_valid_json() self.create_valid_multiple_json() self.create_valid_no_packages_json() self.create_valid_json_no_post_installation_entry() self.create_valid_json_with_alternative_names_entry() Logger.disable_all()
def setUp(self): self.create_valid_json() self.create_unknown_type_json() self.create_file_json() self.create_valid_file_append_json() self.parser = PostInstallationParser(self.validJSON) Logger.disable_all()
def setUp(self): self.remote_runner_with_remote_verified_source = RemoteRunner( Remote( "dummy_remote", url= "https://raw.githubusercontent.com/Parcks/plugins/master/testPlugin.ppl" )) self.remote_runner_unverified_remote_source = RemoteRunner( Remote("dummy_remote", url="http://www.example.com")) self.saved_out = sys.stdout sys.stdout = open("/dev/null", "w") Logger.disable_all()
def setUp(self): Logger.disable_all() self.test_file_creator_path = "/tmp/dummy_path" self.file_create = FileCreate("Dummy creator", self.test_file_creator_path, "dummy contents") self.file_create_as_root = FileCreate("Dummy creator", self.test_file_creator_path, "dummy contents", True) self.file_create_runner = FileCreateRunner(self.file_create) self.file_create_runner_as_root = FileCreateRunner( self.file_create_as_root)
def setUp(self): self.create_valid_remote_json() self.create_invalid_remote_json() self.create_valid_remote_json_with_commands() Logger.disable_all()
def setUp(self): Logger.disable_all() self.create_package_with_post_install() self.create_package_without_post_install()
def setUp(self): self.facade = InstallFacade("file.parcks") self.facade.distro_name = "debian" self.facade.software_catalog = self.create_software_catalog() Logger.disable_all()
def setUp(self): self.controller = InstallationController("file.parcks") Logger.disable_all()
def setUp(self): Logger.disable_all() self.runner = RootShellCommandRunner(ShellCommand(["pwd"])) self.runner_multiple = RootShellCommandRunner( ShellCommand(["pwd", "pwd"]))
def setUp(self): self.create_valid_shell_json_two() self.create_valid_shell_json_one() self.create_valid_shell_json_zero() Logger.disable_all()
def setUp(self): self.remote = Remote("Test Plugin") Logger.disable_all()
def setUp(self): self.controller = StartupController("file.parcks".split()) Logger.disable_all()
def setUp(self): self.create_facade() self.create_json_object() self.create_json_array() Logger.disable_all()
def setUp(self): Logger.disable_all() self.file_append = FileAppend("Dummy append", "/tmp/test", "appended")
def setUp(self): self.factory = InstallPackageManagementWrapperFactory() Logger.disable_all()
def setUp(self): Logger.disable_all() self.file_create = FileCreate("Dummy creator", "dummy path", "dummy contents")
def setUp(self): self.create_valid_create_file_json() self.create_invalid_create_file_json() Logger.disable_all()
def setUp(self): Logger.disable_all() self.wrapper = DebianInstallPackageManagementWrapper() self.wrapper.set_package_name("test")
def setUp(self): self.test_file = "/tmp/test_file_permission_reader" self.create_file_to_test() Logger.disable_all()
def setUp(self): self.shell = Shell("Dummy shell", [ShellCommand(["pwd"])]) self.shell_runner = ShellRunner(self.shell) self.shell_multiple_commands = Shell("Dummy shell", [ShellCommand(["pwd"]), ShellCommand(["pwd"])]) self.shell_runner_multiple_commands = ShellRunner(self.shell_multiple_commands) Logger.disable_all()
def setUp(self): Logger.disable_all() self.create_package_with_alternatives() self.create_installer_without_alternatives()
def setUp(self): self.remote = Remote("Dummy remote", TestRemoteDownloader.TEST_REMOTE_URL) self.remote_downloader = RemoteDownloader(self.remote) Logger.disable_all()
def setUp(self): self.create_remote_that_requires_download() self.create_remote_that_requires_download_official_repo() self.create_invalid_remote() Logger.disable_all()
def setUp(self): self.create_valid_json() self.create_invalid_json() self.create_valid_json_with_work_directory() Logger.disable_all()