Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#1753] Move legacy tests to ckan/tests/legacy.
- Loading branch information
David Read
committed
Jan 16, 2015
1 parent
01826e7
commit 533284b
Showing
126 changed files
with
293 additions
and
299 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,6 @@ | ||
import warnings | ||
# Import provides (temporarily) backward compatibility for extensions that | ||
# pre-date the move of tests from ckan.tests to ckan.test.legacy. | ||
#from ckan.tests.legacy import * | ||
|
||
warnings.warn( | ||
"ckan.tests has been renamed to ckan.tests_legacy. " | ||
"In the next release it is planned to remove ckan.tests, and possibly " | ||
"rename ckan.new_tests to ckan.tests.", | ||
FutureWarning) | ||
|
||
from ckan.tests_legacy import * | ||
# (Not showing a deprecation warning as it would show whenever you import | ||
# anything in ckan.tests.) |
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 |
---|---|---|
@@ -1,10 +1,9 @@ | ||
import warnings | ||
|
||
warnings.warn( | ||
"ckan.tests has been renamed to ckan.tests_legacy. " | ||
"ckan.tests has been renamed to ckan.tests.legacy. " | ||
"In the next release it is planned to remove ckan.tests, and possibly " | ||
"rename ckan.new_tests to ckan.tests.", | ||
FutureWarning) | ||
|
||
from ckan.tests_legacy.functional import * | ||
|
||
#from ckan.tests.legacy.functional import * |
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 |
---|---|---|
@@ -1,11 +1,9 @@ | ||
import warnings | ||
|
||
warnings.warn( | ||
"ckan.tests has been renamed to ckan.tests_legacy. " | ||
"ckan.tests has been renamed to ckan.tests.legacy. " | ||
"In the next release it is planned to remove ckan.tests, and possibly " | ||
"rename ckan.new_tests to ckan.tests.", | ||
FutureWarning) | ||
|
||
from ckan.tests_legacy.functional.api.base import * | ||
|
||
|
||
#from ckan.tests.legacy.functional.api.base import * |
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import warnings | ||
|
||
warnings.warn( | ||
"ckan.tests has been renamed to ckan.tests_legacy. " | ||
"ckan.tests has been renamed to ckan.tests.legacy. " | ||
"In the next release it is planned to remove ckan.tests, and possibly " | ||
"rename ckan.new_tests to ckan.tests.", | ||
FutureWarning) | ||
|
||
from ckan.tests_legacy.functional.base import * | ||
#from ckan.tests.legacy.functional.base import * |
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
ckan/tests_legacy/ckantestplugins.py → ckan/tests/legacy/ckantestplugins.py
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
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
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
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
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
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
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
6 changes: 3 additions & 3 deletions
6
ckan/tests_legacy/functional/api/test_api.py → ckan/tests/legacy/functional/api/test_api.py
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
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
4 changes: 2 additions & 2 deletions
4
.../tests_legacy/functional/api/test_misc.py → .../tests/legacy/functional/api/test_misc.py
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
4 changes: 2 additions & 2 deletions
4
...ts_legacy/functional/api/test_resource.py → ...ts/legacy/functional/api/test_resource.py
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
4 changes: 2 additions & 2 deletions
4
...cy/functional/api/test_resource_search.py → ...cy/functional/api/test_resource_search.py
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
4 changes: 2 additions & 2 deletions
4
...cy/functional/api/test_revision_search.py → ...cy/functional/api/test_revision_search.py
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
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,5 @@ | ||
from ckan.tests.legacy.html_check import HtmlCheckMethods | ||
from ckan.tests.legacy import TestController as ControllerTestCase | ||
|
||
class FunctionalTestCase(ControllerTestCase, HtmlCheckMethods): | ||
pass |
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
2 changes: 1 addition & 1 deletion
2
ckan/tests_legacy/functional/test_admin.py → ckan/tests/legacy/functional/test_admin.py
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
File renamed without changes.
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
Oops, something went wrong.