Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamically generate invalid config files in unit tests #220

Merged
merged 12 commits into from
Dec 1, 2023
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading