-
Notifications
You must be signed in to change notification settings - Fork 31
Namespaces: Turn tests back on #841
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
Namespaces: Turn tests back on #841
Conversation
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.
Just a couple of small suggestions! Might be a good idea to explain (very briefly!!!) in a comment here why we are moving from two classes (PolicyTestSet and PolicyTestData) to a single one.
…chlag to durchschnittliche_entgeltpunkte_zuschlag.
|
Just to be sure: We want to turn Tbh, I'm not 100% sure what this check is supposed to do. |
Can't check in detail right now, but IIRC this should mirror the |
|
The current version does raise it. Run (Maybe the test path is incorrect typed it out of memory, current not on my machine) |
So before we did the following:
I thought this is a bit complicated. We now have only one class (PolicyTest) which contains exactly what we need for one test (input columns, one expected output column). Everything else is done outside of classes (especially this parametrize functionality). |
Thanks! Let's see when things are back how speed looks like. I guess if there are many tests with 5 output columns, each previously ran once, now they will run 5 times? Might not be a big deal though. |
|
No, a test did run once per output column before as well. So hopefully no decrease in speed! |
Okay, simply too much time has passed since and it seems like I misremembered the resolution we had found on the following. Say we have: We wanted to be able to write inside We wrote #805 like this option did not exist; I do think now that this is a good thing even if we need to disable I set |
I think the convention is |
…nkte_zuschlag to durchschnittliche_entgeltpunkte_zuschlag." This reverts commit 5a4a47b.
This reverts commit 6d5b2aa.
for more information, see https://pre-commit.ci
|
We're now back to using qualified names everywhere. All tests pass -- and are much faster now 🙂 |
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.
Beautiful! Just some tiny changes, mostly a suggestion for the global namespace.
|
I have adjusted the namespaces according to you suggestions. Needed to change the infrastructure a tiny bit to allow for aggregation targets to be in different namespaces than aggregation sources, but I think this is something we should do anyhow. |
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.
Excellent! Thanks!
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.
So these can't just live in the global namespace
(I keep forgetting about taxes/transfers. I guess this is the global namespace, in a way)
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, they're currently in the global namespace!
### What problem do you want to solve? This PR provides the necessary renamings of taxes and transfers functions for #804. ToDo: - [x] Create new directory structure - [x] Rename all function arguments - [x] Set namespace of basic input variables - [x] Update `pyproject.toml` to reflect new file structure - [x] Make sure tests run (#841) - [x] `kinderfreibetragempfänger` $\rightarrow$ `kinderfreibetragsempfänger` - [x] Link issue #842 in relevant docstrings --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Hans-Martin von Gaudecker <[email protected]>
This PR is based on #805 and turns the tests back on which were previously skipped.
Todos: