def test_args_parsed_one_filename(self): args = ["myfile.sql"] config = pgsanity.get_config(args) self.assertEqual(args, config.files)
def test_args_parsed_multiple_filenames(self): args = ["myfile.sql", "myotherfile.sql"] config = pgsanity.get_config(args) self.assertEqual(args, config.files)
def test_args_parsed_one_filename(self): args = ["myfile.sql"] config = pgsanity.get_config(args) self.assertEqual(args, config.files) self.assertEqual(False, config.add_semicolon)
def test_args_parsed_add_semicolon(self): args = ["--add-semicolon", "myfile.sql"] config = pgsanity.get_config(args) self.assertEqual(["myfile.sql"], config.files) self.assertEqual(True, config.add_semicolon)