Details
- Reviewers
anlambert olasd - Commits
- rDLDPY62527b28d297: .gitignore: Ignore .tox/ folder
rDLDPYce8d2eaf77b2: README.md: Fix typo
rDLDPYbce8c40e1285: pypi.tests: No need for extra override cleanup
rDLDPY5e3afe09c9d4: pypi.tests: Do not leak core loader fixture's state
rDLDPY9a65ff0477a2: swh.loader.pypi.model: Remove dead code
rDLDPYdead01f5207e: pypi.tests: Fix missing cleanup step
rDLDPYe5caa83e81c9: loader.tests: Refactor using loader-core mixins
make test
Diff Detail
- Repository
- rDLDPY PyPI loader
- Branch
- master
- Lint
No Linters Available - Unit
No Unit Test Coverage - Build Status
Buildable 1607 Build 1951: arc lint + arc unit
Event Timeline
- loader.tests: Refactor using loader-core mixins
- pypi.tests: Fix missing cleanup step
- swh.loader.pypi.model: Remove dead code
- README.md: Fix typo
- pypi.tests: Do not leak core loader fixture's state
+ Rebase
Apart the overriding of the cleanup method in TestPyPILoader which I think can be avoided, it looks good to me.
swh/loader/pypi/tests/test_loader.py | ||
---|---|---|
34 | Here, maybe you could use the temp_directory instance variable from the PyPILoader class instead (https://forge.softwareheritage.org/source/swh-loader-pypi/browse/master/swh/loader/pypi/loader.py$79)? |
swh/loader/pypi/tests/test_loader.py | ||
---|---|---|
34 | Not sure, will check. |
swh/loader/pypi/tests/test_loader.py | ||
---|---|---|
34 | I'm actually doing that (through the initialized client). Hence, when clarifying this, i'm realizing i should not have to override the cleanup... Digging further. |
swh/loader/pypi/tests/test_loader.py | ||
---|---|---|
34 | Ok, it's a bug in the loader-core's new mixin feature initialization step. It does not pass along the constructor parameters... Fix [1] is done there so now i can safely remove the extra cleanup. |
swh/loader/pypi/tests/test_loader.py | ||
---|---|---|
34 | Ok but I still have the feeling that self.temp_dir will not be cleanup. |
swh/loader/pypi/tests/test_loader.py | ||
---|---|---|
34 |
It is. I forgot to mention that i no longer have dangling files in core and pypi loaders in the current diff state (and commit).
self.temp_directory is self.temp_dir as per [1] [1] https://forge.softwareheritage.org/source/swh-loader-pypi/browse/master/swh/loader/pypi/loader.py$51 |
swh/loader/pypi/tests/test_loader.py | ||
---|---|---|
34 | Ok, did not spot the call to super().__init__ below. |