-
Notifications
You must be signed in to change notification settings - Fork 0
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
MAINT - Add scripts to automate backup and restoration of the test database #334
Conversation
Codecov Report
@@ Coverage Diff @@
## main #334 +/- ##
=======================================
Coverage 95.32% 95.32%
=======================================
Files 10 10
Lines 1370 1370
=======================================
Hits 1306 1306
Misses 64 64 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
logger.info(f"----Fetching attributes in layout '{layout_name}") | ||
renamed_attributes_for_table = renamed_attributes.get(table_name, []) | ||
table_info = table_name_map[table_name] | ||
table_layouts: models.GrantaServerApiSchemaLayoutsLayoutsInfo = ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The massive class/method names are distracting, but there's not much we can do really.
) | ||
|
||
|
||
class TableLayoutApplier(ServerApiClient): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like you've built a first version of the pythonic schema API!
This PR adds a collection of scripts:
These scripts have been tested with the current release and they produce a DB that works with the test suite.