Skip to content

Commit

Permalink
Trying new test type for etlTest.main() to see if it improves code co…
Browse files Browse the repository at this point in the history
…verage.
  • Loading branch information
Alex Meadows committed Jul 17, 2014
1 parent f462fe3 commit 73ff475
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion etltest/test/test_etlTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,10 @@ def test_parser_in_file_in_dir_exclusivity(self):
dir_param = "-d {0:s}".format(self.in_dir)

with self.assertRaises(subprocess.CalledProcessError):
subprocess.check_output(args=['python', self.process, file_param, dir_param, "-g"])
subprocess.check_output(args=['python', self.process, file_param, dir_param, "-g"])

def test_file_dir_exclusivity(self):
#Test if in_file and in_dir are mutually exclusive.
args = self.parser.parse_args(['-f', 'file.yml', '-d', '/not/real/dir/', '-g'])
with self.assertRaises(SystemExit):
etlTest.main(args)

0 comments on commit 73ff475

Please sign in to comment.