Conversation
|
I'd give Regarding the rest of refactoring, let's invite @igneus to try splitting the scope somehow, since he was going to do additional PR as well. |
Codecov Report
@@ Coverage Diff @@
## master #167 +/- ##
==========================================
- Coverage 100% 99.69% -0.31%
==========================================
Files 4 4
Lines 329 329
==========================================
- Hits 329 328 -1
- Misses 0 1 +1
Continue to review full report at Codecov.
|
I don't think I have anything helpful to say right now. "Splitting the scope" is a task quite a few levels above my current level of understanding of the code in question. |
|
@igneus would you wait for @gagoman to finish this PR then? |
|
@gagoman could you please apply your changes to existing files rather than creating new |
Sure. To be honest: I had no real plans concerning the "true refactoring" phase of the work (beyond removing unittest) and my attempt to approach it before I learned about @gagoman 's work on this PR hasn't resulted in anything worth a commit -- stuff just got more complicated than it had been originally. It seems I can't really "think the pytest way" yet when it comes to fixtures and parametrization. |
|
@gagoman please not only add new tests but drop obsolete unittest styled ones. |
d4602bf to
949779e
Compare
* moved multidict tests to test_mutable_multidict * moved types tests to test_types
949779e to
2594ce8
Compare
|
Feel free to review. This is quite a big change though. Now there would be more tests, as previously I have some questions that I've placed in PR body. |
| CIMultiDict, | ||
| istr | ||
| ) | ||
| def chained_ctor(_multidict_module, impls): |
There was a problem hiding this comment.
I cannot guess what this function name stands for. Could you plz think of its improvement? Explicit is better, than implicit.
Oh.. and it would be great it you could add docstrings.
There was a problem hiding this comment.
Sure, will do. Any preference on name?
|
I'll review it closer a bit later, but at glance it looks cleaner now :) |
asvetlov
left a comment
There was a problem hiding this comment.
Looks good but replaced tests should be deleted.
|
@asvetlov could you please elaborate? Which tests? There are no duplicates atm. |
|
@gagoman nevermind. Missed collapsed file |
|
thanks! |
Changes:
_BaseMutableMultiDictTestsare atTestMutableMultiDictTestNonProxyCIMultiDict#test_extend_with_istrwas moved toTestMutableMultiDict_TestProxy/_TestCIProxy#test_copywas moved totest_proxy_copyQuestions:
sorted?_CIMultiDictTestswas inherited from_Rootand not_BaseTesttest__iter__typeswas done only for non-ci dicts. Should I add CI classes?