-
Notifications
You must be signed in to change notification settings - Fork 1
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
added draft lastschriftmandat #179
base: main
Are you sure you want to change the base?
Conversation
Codecov Report
@@ Coverage Diff @@
## master #179 +/- ##
==========================================
- Coverage 75.46% 70.21% -5.26%
==========================================
Files 23 24 +1
Lines 1011 1155 +144
==========================================
+ Hits 763 811 +48
- Misses 248 344 +96
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Can you open a single PR blacking the whole project before proceeding? That would make reviewing the rest much easier |
I'd also vote for making black the official Code-Style and adding pre-commit hooks for that :-) |
|
member_database/models/sepa.py
Outdated
creation_date = db.Column(db.DateTime(timezone=True), nullable=False) | ||
|
||
@validates("iban") | ||
def validate_iban(self, key, iban): |
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.
mmh, don't roll your own? Sure we need to implement this ourselves...? This should definitely be tested
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.
Yes we need to test this, generally this PR needs tests.
(I did not fully write this myself, though, I tuned an implementation I found on GitHub)
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): |
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.
This should not be allowed ;)
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.
It is possible in alembic to not implement the downgrade. Since this might remove data we need to keep, maybe this would be a point where we don't allow the downgrade.
Added basic mechanism to add a sepa lastschriftmandat to the db.
Still a little rough around the edges, so I need more help on this. Tests are still completely misssing...
Fixes #114