-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into bs-blackbox-schema
- v1.0
- v0.1
- untagged-f54676251d8addec5efe
- untagged-f13f573c6347619daa1c
- untagged-f5d95c10667db04840ae
- untagged-ee4f9c6eccbbfb1329d6
- untagged-ec73852136e26c5af85c
- untagged-eaca510e6317c7540d67
- untagged-e3023b947c437684c84b
- untagged-e620fe6b3c512aec71a9
- untagged-e77eb9d42d6fe50782d9
- untagged-dd4959454575c140e36d
- untagged-d41b811d248256f0d16f
- untagged-ccd13a825d32ced31448
- untagged-ca2edfdb58f2185eb6ef
- untagged-c629b4a3655e5231227b
- untagged-b06901bf545c9504fe5e
- untagged-b5c6aa4c31887bb9cf06
- untagged-aa2caf95917d82faa468
- untagged-5617087b869cdfedef47
- untagged-644773c7e7de80aaf827
- untagged-0330860e6d7921f4a8c4
- untagged-9658e5b199dc574f3589
- untagged-5495cdfd61d119a6d491
- untagged-757c4cca5498eef65223
- untagged-693b3cec3aec334bbbc7
- untagged-659b5652dc561a2432a0
- untagged-613b8ff8bea85484f114
- untagged-569e461ae75b884e851c
- untagged-317ab89257405d0fa717
- untagged-299d0b5309e18b8239c4
- untagged-96a968b7d5c3ab08c3e2
- untagged-92d9bfa087d708222fef
- untagged-86f4cb1d11133918d09e
- untagged-83e82f90c6d591570450
- untagged-77bf98ca61dc6a55daa3
- untagged-72f834b097ecb8335e16
- untagged-27cffa68e9e055b1d14b
- untagged-24db26daf347ce3b2924
- untagged-9e4ffe9b8394cc2242d3
- untagged-9c0b6fe64b61f11d2c1b
- untagged-8e3936d63b538e47fca9
- untagged-08cce103308dc02ae6b2
- untagged-8c8572ca508f88982f4d
- untagged-8a16695cc3ad6283ce26
- untagged-8a40d47fa4ede622143a
- untagged-7a46d51296332ec42616
- untagged-5ef905714078a3a7a18c
- untagged-5d2b9b66f7e79039abb1
- untagged-4edfc3a0e1c860964a1b
- untagged-04cf70534adcc18b1111
- untagged-3bda0c4789ac288bed8a
- untagged-0ded67bfe5df6669a0e4
- untagged-0d83b2ff74380e4d7f0b
Showing
3 changed files
with
81 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import unittest | ||
import json | ||
|
||
import mainCLI as main | ||
|
||
example_configuration = json.loads(open("example_config.json", "r").read())["specjbb"] | ||
|
||
class TestMain(unittest.TestCase): | ||
def test_to_list_gives_arguments(self): | ||
self.assertIsNotNone(main.to_list(example_configuration)) | ||
|
||
def test_to_list_changes_based_on_run_type(self): | ||
different = example_configuration.copy() | ||
different.update({ "run_type": "HBIR_RT" }) | ||
|
||
if example_configuration == different: | ||
self.skipTest() | ||
|
||
self.assertNotEqual(main.to_list(example_configuration), | ||
main.to_list(different)) | ||
|
||
def test_to_list_has_required_keys(self): | ||
with self.assertRaises(Exception): | ||
main.to_list({}) |