Exemple #1
0
 def loads_json_include_from_http_url_validate_checksum(self):
     return exjson.loads("""{
         "Name": "First Stage",
         "Description": "Retrieves Sample Data from file",
         "Sequence_Id": 1,
         /* #INCLUDE <Post:https://raw.githubusercontent.com/prods/exjson/master/tests/samples/clean-simple.json|{}|cf5c54e08ad3c8c57d1d98e7622e8e93> */
         "Enabled": true
     }
     """,
                         encoding='utf-8')
Exemple #2
0
 def loads_json_include_default_value(self):
     return exjson.loads("""{
         "Name": "First Stage",
         "Description": "Retrieves Sample Data from file",
         "Sequence_Id": 1,
         "Parameters": {
         },
         /* #INCLUDE <Steps:step_not_found.json|[]> */
         "Enabled": true
     }
     """,
                         encoding='utf-8')
Exemple #3
0
 def loads_json_with_comments_and_included_files(self, json_source):
     return exjson.loads(json_source,
                         encoding='utf-8',
                         includes_path=get_sample_dir_path())
Exemple #4
0
 def loads_json_string_with_comments(self, json_source):
     return exjson.loads(json_source, encoding='utf-8')
Exemple #5
0
 def loads_with_includes_and_no_provided_includes_path(self, json_source):
     return exjson.loads(json_source, encoding='utf-8')
Exemple #6
0
 def loads_simple_json_string(self, json_source):
     return exjson.loads(json_source, encoding='utf-8')
Exemple #7
0
 def loads_json_evaluate_raw_date_value(self, json_source, test_name=None):
     return exjson.loads(json_source,
                         encoding='utf-8',
                         includes_path=get_sample_dir_path())
Exemple #8
0
 def loads_json_without_property_override_raises_an_error(
         self, json_source):
     return exjson.loads(json_source,
                         encoding='utf-8',
                         includes_path=get_sample_dir_path())
Exemple #9
0
 def loads_json_missing_include_does_not_raise_error_if_specified(
         self, json_source):
     return exjson.loads(json_source,
                         encoding='utf-8',
                         includes_path=get_sample_dir_path(),
                         error_on_include_file_not_found=False)
Exemple #10
0
 def loads_json_missing_include_raises_an_error(self, json_source):
     return exjson.loads(json_source,
                         encoding='utf-8',
                         includes_path=get_sample_dir_path(),
                         error_on_include_file_not_found=True)
Exemple #11
0
 def loads_json_includes_followed_by_comment_before_EOF(self, json_source):
     return exjson.loads(json_source, encoding='utf-8')
Exemple #12
0
 def test_loads_json_in_different_positions_and_using_properties_overrides(
         self, json_source):
     return exjson.loads(json_source,
                         encoding='utf-8',
                         includes_path=get_sample_dir_path())