def test_execution_no_clean(self, parser): update_folder = 'pyu-data' data_folder = '.pyupdater' subparser = make_subparser(parser) add_clean_parser(subparser) args, other = parser.parse_known_args(['clean', '-y']) clean(args) assert not os.path.exists(update_folder) assert not os.path.exists(data_folder)
def test_execution_no_clean(self, parser): update_folder = "pyu-data" data_folder = ".pyupdater" subparser = make_subparser(parser) add_clean_parser(subparser) args, other = parser.parse_known_args(["clean", "-y"]) commands._cmd_clean(args) assert not os.path.exists(update_folder) assert not os.path.exists(data_folder)
def test_execution_no_clean(self, parser): update_folder = 'pyu-data' data_folder = '.pyupdater' subparser = make_subparser(parser) add_clean_parser(subparser) args, other = parser.parse_known_args(['clean', '-y']) commands._cmd_clean(args) assert not os.path.exists(update_folder) assert not os.path.exists(data_folder)
def test_no_args(self, parser): subparser = make_subparser(parser) add_clean_parser(subparser) assert parser.parse_known_args(['clean'])
def test_no_args(self, parser): subparser = make_subparser(parser) add_clean_parser(subparser) assert parser.parse_known_args(["clean"])