commit a69ba853a78090d0e23be2dd5f8f2e5d4e564df4
Author: Akihiro Motoki <email address hidden>
Date: Sun Jan 6 15:05:43 2019 +0900
UT: Run test_plugins as separate process
This commit changes to run test_plugins in a separate process.
test_plugins touches urlpatterns and Site registry during setUp(),
but the cleanup process in tearDown does not recover urlpatterns correctly.
After tests under test_plugins run, the urlpatterns continues to have
entries of test panels and this leads to NoReverseMatch error when
rendering other panels after that.
I investigated details in setUp/tearDown of PluginTestCase but failed
to find a good solution to recover urlpatterns and Horizon Site registry.
As a workaround, runnig test_plugins in a separate process can avoid
the issue.
Reviewed: https:/ /review. openstack. org/627640 /git.openstack. org/cgit/ openstack/ horizon/ commit/ ?id=a69ba853a78 090d0e23be2dd5f 8f2e5d4e564df4
Committed: https:/
Submitter: Zuul
Branch: master
commit a69ba853a78090d 0e23be2dd5f8f2e 5d4e564df4
Author: Akihiro Motoki <email address hidden>
Date: Sun Jan 6 15:05:43 2019 +0900
UT: Run test_plugins as separate process
This commit changes to run test_plugins in a separate process.
test_plugins touches urlpatterns and Site registry during setUp(),
but the cleanup process in tearDown does not recover urlpatterns correctly.
After tests under test_plugins run, the urlpatterns continues to have
entries of test panels and this leads to NoReverseMatch error when
rendering other panels after that.
I investigated details in setUp/tearDown of PluginTestCase but failed
to find a good solution to recover urlpatterns and Horizon Site registry.
As a workaround, runnig test_plugins in a separate process can avoid
the issue.
Closes-Bug: #1809983 ed055955b2b12d2 497811edc5a
Change-Id: I848f6b341b3f93