Skip to content

Commit

Permalink
issue #171. fixed broken tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
rupertford committed Mar 24, 2019
1 parent a0c8c75 commit fdce536
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/fparser/two/tests/test_scripts.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2018 Science and Technology Facilities Council
# Copyright (c) 2018-2019 Science and Technology Facilities Council
#
# All rights reserved.
#
Expand Down Expand Up @@ -49,6 +49,7 @@
class DummyArgs(object):
''' dummy object pretending to be the argument options '''
mode = "auto"
task = "show"


def test_runner_no_files(capsys):
Expand Down Expand Up @@ -88,6 +89,8 @@ def test_runner_set_mode(tmpdir, capsys):
class DummyArgsFree(object):
''' dummy object pretending to be the argument options '''
mode = "free"
task = "show"

# run the relevant script method (runner())
fparser2.runner(None, DummyArgsFree(), [my_file.strpath])
# capture the output and check that the code has been output
Expand Down

0 comments on commit fdce536

Please sign in to comment.