Skip to content

Commit

Permalink
Merge pull request #220 from aadityasinha-dotcom/validate_schema
Browse files Browse the repository at this point in the history
Dynamically generate invalid config files in unit tests
  • Loading branch information
t1m0thyj authored Dec 1, 2023
2 parents ccd87be + f24a87e commit 9cc18d9
Show file tree
Hide file tree
Showing 7 changed files with 45 additions and 982 deletions.
4 changes: 4 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,8 @@
"source.organizeImports": true
}
}
},
"python.testing.pytestArgs": ["tests"],
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true
}
2 changes: 1 addition & 1 deletion src/core/zowe/core_for_zowe_sdk/config_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def validate_schema(self) -> None:

# validate the $schema property
if path_schema_json:
validate_config_json(self.jsonc, path_schema_json, cwd=self.location)
validate_config_json(self.jsonc, path_schema_json, cwd = self.location)

def schema_list(
self,
Expand Down
55 changes: 0 additions & 55 deletions tests/unit/fixtures/invalid.zowe.config.json

This file was deleted.

427 changes: 0 additions & 427 deletions tests/unit/fixtures/invalid.zowe.schema.json

This file was deleted.

55 changes: 0 additions & 55 deletions tests/unit/fixtures/invalidUri.zowe.config.json

This file was deleted.

Loading

0 comments on commit 9cc18d9

Please sign in to comment.