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

chore: use helper functions to init test data and rm test instability #98

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

realaravinth
Copy link
Member

@realaravinth realaravinth commented Apr 14, 2022

blocked by #9

TEST INSTABILITY

db/test_comments test was unstable because data generated were saved at separate locations, resulting in uncontrolled/weird data created and updated time. All test data are now saved with one save call, at the top most data type(DBComment is at a higher level as it wraps over/dependent on DBIssue)

SUMMARY
    DBIssue and DBComment loaded data from database when performing
    updates via self.__update() which in some cases where unnecessary as a
    fetch would have been performed just before invoking __update().

    This patch introduces an optical parameter to provide recently
    loaded data from DB
TEST INSTABILITY

    db/test_comments test was unstable because data generated were saved
    at separate locations, resulting in uncontrolled/weird data created
    and updated time. All test data are now saved with one save call,
    at the top most data type(DBComment is at a higher level as it wraps
    over/dependant on DBIssue)
@realaravinth realaravinth marked this pull request as draft April 14, 2022 18:40
@realaravinth
Copy link
Member Author

Apologies, I forgot to check in caching code which is WIP. Will update tomorrow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant