update pymacro tests

This commit is contained in:
Akbar Rahman 2019-01-25 17:38:18 +00:00
parent 46dafcd59b
commit 51109be19b
Signed by: alvierahman90
GPG Key ID: 20609519444A1269
3 changed files with 4 additions and 2 deletions

View File

@ -11,6 +11,8 @@ def get_args():
parser = argparse.ArgumentParser()
parser.add_argument("-m", "--macros", default=["macros"], action="append",
help="Extra files where macros are stored")
parser.add_argument("-q", "--quiet", default=False, action="store_true",
help="Don't output to stdout")
parser.add_argument("input", help="The file to be processed")
parser.add_argument("output", help="The location of the output")
return parser.parse_args()

View File

@ -14,7 +14,7 @@ optional arguments:
-h, --help show this help message and exit
-m MACROS, --macros MACROS
Extra files where macros are stored
-s, --silent Do not print processed file
-q, --quiet Do not print processed file
```

View File

@ -1,4 +1,4 @@
#/usr/bin/env sh
./pymacro -s tests/test_input tests/test_actual_output
./pymacro -q tests/test_input tests/test_actual_output
git diff tests/test_actual_output tests/test_expected_output