Changeset 1abf820 in flex_extract.git for source


Ignore:
Timestamp:
Nov 10, 2018, 9:53:43 PM (5 years ago)
Author:
Anne Philipp <anne.philipp@…>
Branches:
master, ctbto, dev
Children:
3946de5
Parents:
96e1533
Message:

added fail test for get_command_line method

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/pythontest/TestTools.py

    r96e1533 r1abf820  
    4444    def test_anystr_none_or_str(self):
    4545        assert 'test' == none_or_str('test')
     46
     47    def test_fail_get_cmdline_arguments(self):
     48        sys.argv = ['dummy.py', '--wrong=1']
     49        with pytest.raises(SystemExit):
     50            results = get_cmdline_arguments()
    4651
    4752    def test_default_get_cmdline_arguments(self):
     
    7075        assert cmd_dict_control == vars(results)
    7176
    72 
    7377    def test_input_get_cmdline_arguments(self):
    7478        cmd_dict_control = {'start_date':'20180101',
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG