Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#1753] Add backward compatibility for tests and warning. Tested agai…
…nst ckanext-harvest/spatial/archiver/qa.
- Loading branch information
David Read
committed
Jan 15, 2015
1 parent
529c2bb
commit 01826e7
Showing
5 changed files
with
43 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import warnings | ||
|
||
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 * |
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,10 @@ | ||
import warnings | ||
|
||
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.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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import warnings | ||
|
||
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.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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import warnings | ||
|
||
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.functional.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