-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor kcidb.orm module for improved readability and maintainability
Extract parts of kcidb.orm module into separate modules for improved maintainability and readability. Specifically, we refactored the module by creating two new modules - kcidb.orm.data for SCHEMA and dependencies, and kcidb.orm.query for Pattern and dependencies. Updated all relevant references to the new modules. No changes in behavior. Signed-off-by: Abhishek Kumar <[email protected]>
- Loading branch information
1 parent
3caa42f
commit a217ae7
Showing
19 changed files
with
1,447 additions
and
1,412 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
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
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 |
---|---|---|
|
@@ -42,7 +42,7 @@ def test_min(): | |
}, | ||
], | ||
}) | ||
oo_data = oo_client.query(orm.Pattern.parse(">*#")) | ||
oo_data = oo_client.query(orm.query.Pattern.parse(">*#")) | ||
|
||
notification_message = NotificationMessage( | ||
to=["[email protected]", "[email protected]"], | ||
|
@@ -119,7 +119,9 @@ def test_subject_and_body_length(): | |
}, | ||
] | ||
}) | ||
revision = oo_client.query(orm.Pattern.parse(">revision#"))["revision"][0] | ||
revision = oo_client.query( | ||
orm.query.Pattern.parse(">revision#") | ||
)["revision"][0] | ||
|
||
# test under-limit length subject/body are left intact in the email | ||
notification_message = NotificationMessage( | ||
|
@@ -235,7 +237,9 @@ def test_subject_invalid_character(): | |
}, | ||
] | ||
}) | ||
revision = oo_client.query(orm.Pattern.parse(">revision#"))["revision"][0] | ||
revision = oo_client.query( | ||
orm.query.Pattern.parse(">revision#") | ||
)["revision"][0] | ||
|
||
# test invalid character in subject are replaced | ||
# by the uncertainty sign character in the email | ||
|
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
Oops, something went wrong.