Page MenuHomeSoftware Heritage

Use the in-mem storage.
ClosedPublic

Authored by vlorentz on Dec 5 2018, 1:41 PM.

Diff Detail

Repository
rDLDDIR Directory Loader
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

ardumont added a subscriber: ardumont.
ardumont added inline comments.
swh/loader/dir/tests/test_loader.py
54

That's not needed.

This revision is now accepted and ready to land.Dec 5 2018, 2:01 PM
vlorentz added inline comments.
swh/loader/dir/tests/test_loader.py
54

It is. BaseDirLoaderTest.setUp extracts a tarball.

This revision was automatically updated to reflect the committed changes.
swh/loader/dir/tests/test_loader.py
54

In my mind, if you don't define it, it's called anyway, isn't it?

anlambert added inline comments.
swh/loader/dir/tests/test_loader.py
54

Yes it is ;-)

swh/loader/dir/tests/test_loader.py
54

so it's not needed?!

;)

swh/loader/dir/tests/test_loader.py
54

Absolutely not needed!

vlorentz added inline comments.
swh/loader/dir/tests/test_loader.py
54

But setUp needs to be defined, because it does other stuff (look just below this comment, that's still the setUp code)

swh/loader/dir/tests/test_loader.py
54

Sorry, got mistaken by the comment boxes from Phabricator that was hiding the rest of the code and thought the method was only one line long.
So the call to the parent method is of course needed in that case.

swh/loader/dir/tests/test_loader.py
54

Right, same here!