Skip to content

Regression test for #417#421

Merged
rahulporuri merged 3 commits into
masterfrom
test/ep-resolution-follows-plugin-start
Jun 14, 2021
Merged

Regression test for #417#421
rahulporuri merged 3 commits into
masterfrom
test/ep-resolution-follows-plugin-start

Conversation

@mdickinson
Copy link
Copy Markdown
Member

This PR adds a regression test for the issue described in #417 (where extension point contributions were being resolved before plugins had started).

The new test should fail on master, but pass once #417 is solved.

@mdickinson
Copy link
Copy Markdown
Member Author

We got the expected failure on Travis:

======================================================================
FAIL: test_extension_point_resolution_occurs_after_plugin_start (envisage.tests.test_application.ApplicationTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/travis/.edm/envs/envisage-test-3.6-null/lib/python3.6/site-packages/envisage/tests/test_application.py", line 329, in test_extension_point_resolution_occurs_after_plugin_start
    [1, 2, 3],
AssertionError: Lists differ: [] != [1, 2, 3]
Second list contains 3 additional elements.
First extra element 0:
1
- []
+ [1, 2, 3]

@mdickinson mdickinson mentioned this pull request Jun 9, 2021
Copy link
Copy Markdown
Contributor

@aaronayres35 aaronayres35 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM once #422 is merged

@rahulporuri
Copy link
Copy Markdown
Contributor

LGTM once #422 is merged

#422 has been merged and I updated this PR, which is now green. Looks like #422 removed all offensive code. We can now merge this PR.

@rahulporuri rahulporuri merged commit ea03dee into master Jun 14, 2021
@rahulporuri rahulporuri deleted the test/ep-resolution-follows-plugin-start branch June 14, 2021 13:50
rahulporuri pushed a commit that referenced this pull request Jun 17, 2021
* Add failing test

* STY: Fix line spacing issues

Co-authored-by: Poruri Sai Rahul <rporuri@enthought.com>
rahulporuri pushed a commit that referenced this pull request Jun 17, 2021
* Revert PR #354 (#422)

* Revert "Support observe("name:items") for ExtensionPoint [Requires Traits 6.1] (#354)"

This reverts commit d62af08.

* TST/FIX : Revert test that used observe to listen to changes to

extension point items. The test now uses a static trait change handler
like before

	modified:   envisage/tests/test_plugin.py

* Regression test for #417 (#421)

* Add failing test

* STY: Fix line spacing issues

Co-authored-by: Poruri Sai Rahul <rporuri@enthought.com>

* Fix test suite dependence on ipykernel (#423)

* Fix hard test suite dependence on ipykernel

* Update envisage/tests/test_ids.py

Co-authored-by: Poruri Sai Rahul <rporuri@enthought.com>

Co-authored-by: Poruri Sai Rahul <rporuri@enthought.com>

* DOC : Update changelog

	modified:   CHANGES.rst

Co-authored-by: Mark Dickinson <mdickinson@enthought.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants