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

Apply updates from the cookiecutter's db branch #23

Closed
wants to merge 1 commit into from

Conversation

seanh
Copy link
Contributor

@seanh seanh commented Jul 11, 2023

This is a test of what hypothesis/cookiecutters#128 would do to this project.

@seanh seanh changed the title Apply updates from cookiecutter Apply updates from the cookiecutter's db branch Jul 11, 2023
from factory.alchemy import SQLAlchemyModelFactory


def set_factoryboy_sqlalchemy_session(session, persistence=None):
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think data-tasks has any factories for SQLAlchemy models (or any factories at all) so it doesn't really need this. So we could add this file (and the factories/__init__.py file above) to the ignore list in data-tasks's cookiecutter.json if we don't want this here. But data-tasks does actually have a db_session fixture for its unit tests and this PR does actually hook factory_boy up to that session, but that would only ever be relevant if data-tasks one day contained some SQLAlchemy models and some factories for those models. So maybe we should remove this from data-tasks?

@seanh seanh closed this Jul 30, 2023
@seanh seanh deleted the cookiecutter-db branch July 30, 2023 18:50
@seanh seanh restored the cookiecutter-db branch July 30, 2023 18:50
@seanh seanh deleted the cookiecutter-db branch July 30, 2023 18:50
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