so it can be used from other packages.
Related to T2355
Differential D3043
Extract kafka-related pytest fixtures in a pytest plugin module Authored by douardda on Apr 22 2020, 3:38 PM.
Details
so it can be used from other packages. Related to T2355
Diff Detail
Event TimelineComment Actions Build is green Patch application report for D3043 (id=10822)Rebasing onto 9afb659fbc... Current branch diff-target is up to date. Changes applied before testcommit 532793e680ba2ee8ce141bccf56c8e6cee53e707
Author: David Douard <david.douard@sdfa3.org>
Date: Wed Apr 22 15:05:34 2020 +0200
Extract kafka-related pytest fixtures in a pytest plugin module
so it can be used from other packages.See https://jenkins.softwareheritage.org/job/DJNL/job/tests-on-diff/50/ for more details. Comment Actions It seems we duplicate the objects data (CONTENT, etc...) both in the pytest_plugin and in the journal_data module.
Comment Actions Also, @ardumont I agree with your other comments, but these will come later, if you may :-) Comment Actions
sure thing. Comment Actions Build is green Patch application report for D3043 (id=10823)Rebasing onto 9afb659fbc... Current branch diff-target is up to date. Changes applied before testcommit 1f6de9604065af9d0cef22684b0880f65ca9ab54
Author: David Douard <david.douard@sdfa3.org>
Date: Wed Apr 22 15:05:34 2020 +0200
Extract kafka-related pytest fixtures in a pytest plugin module
so it can be used from other packages.See https://jenkins.softwareheritage.org/job/DJNL/job/tests-on-diff/51/ for more details. Comment Actions Build is green Patch application report for D3043 (id=10824)Rebasing onto 9afb659fbc... Current branch diff-target is up to date. Changes applied before testcommit 42f4a89abc72e7dd3dc29ec2cd2f1498a6b444f5
Author: David Douard <david.douard@sdfa3.org>
Date: Wed Apr 22 15:05:34 2020 +0200
Extract kafka-related pytest fixtures in a pytest plugin module
so it can be used from other packages.
- put all fixtures as well as the 2 consume_messages() and
assert_all_objects_consumed() utility functions in
swh.journal.pytest_plugin,
- move all hardcoded test data in a dedicated swh.journal.tests.journal_data
module,
- declare this new pytest_plugin via the pytest11 entry point.See https://jenkins.softwareheritage.org/job/DJNL/job/tests-on-diff/52/ for more details. | ||||||||||||||