-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MAINT: allow users to import id constants from api (#508)
Import ids constants in api, allow downstream users to import them from envisage.api. Closes #506 --------- Co-authored-by: Chengyu Liu <cyliu@aus552cyliu.local> Co-authored-by: Mark Dickinson <mdickinson@enthought.com>
- Loading branch information
1 parent
02b4811
commit 011c9cf
Showing
2 changed files
with
50 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# (C) Copyright 2007-2023 Enthought, Inc., Austin, TX | ||
# All rights reserved. | ||
# | ||
# This software is provided without warranty under the terms of the BSD | ||
# license included in LICENSE.txt and may be redistributed only under | ||
# the conditions described in the aforementioned license. The license | ||
# is also available online at http://www.enthought.com/licenses/BSD.txt | ||
# | ||
# Thanks for using Enthought open source! | ||
|
||
import unittest | ||
|
||
import envisage.api as api | ||
import envisage.ids as ids | ||
|
||
|
||
class TestApi(unittest.TestCase): | ||
""" Test for API """ | ||
def test_import(self): | ||
self.assertEqual(api.BINDINGS, ids.BINDINGS) | ||
self.assertEqual(api.COMMANDS, ids.COMMANDS) | ||
self.assertEqual(api.PREFERENCES, ids.PREFERENCES) | ||
self.assertEqual(api.PREFERENCES_CATEGORIES, | ||
ids.PREFERENCES_CATEGORIES) | ||
self.assertEqual(api.PREFERENCES_PANES, ids.PREFERENCES_PANES) | ||
self.assertEqual(api.SERVICE_OFFERS, ids.SERVICE_OFFERS) | ||
self.assertEqual(api.TASKS, ids.TASKS) | ||
self.assertEqual(api.TASK_EXTENSIONS, ids.TASK_EXTENSIONS) |