Skip to content
This repository was archived by the owner on Jun 27, 2023. It is now read-only.

Commit 4ec0ae3

Browse files
author
David Read
committed
test_revision_legacy_code is tested outside of the main run
Also, activity_streams_session_extension is removed as no longer used
1 parent 5f8bacf commit 4ec0ae3

6 files changed

+15
-128
lines changed

.circleci/config.yml

+8
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,14 @@ jobs:
7777
- store_test_results:
7878
path: ~/junit
7979

80+
# test_revision_legacy_code is run separately because it mucks up the model for some other tests when nose starts up
81+
- run:
82+
command: |
83+
case $CIRCLE_NODE_INDEX in
84+
3) nosetests -v --ckan --with-pylons=test-core-circle-ci.ini --nologcapture test_revision_legacy_code.py
85+
;;
86+
esac
87+
8088
# Tests Frontend, only in one container
8189
- run:
8290
command: |

ckan/lib/activity_streams_session_extension.py

-125
This file was deleted.

ckan/model/meta.py

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
from sqlalchemy.orm.session import SessionExtension
1111

1212
import extension
13-
import ckan.lib.activity_streams_session_extension as activity
1413

1514
__all__ = ['Session', 'engine_is_sqlite', 'engine_is_pg']
1615

ckan/tests/legacy/test_coding_standards.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ class TestPep8(object):
456456
'ckan/tests/legacy/schema/test_schema.py',
457457
'ckan/tests/legacy/test_plugins.py',
458458
'ckan/tests/legacy/test_versions.py',
459-
'ckan/tests/migration/test_revision_legacy_code.py',
459+
'test_revision_legacy_code.py',
460460
'ckan/websetup.py',
461461
'ckanext/datastore/bin/datastore_setup.py',
462462
'ckanext/datastore/logic/action.py',

ckan/tests/test_coding_standards.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ def find_unprefixed_string_literals(filename):
562562
u'ckan/tests/logic/test_schema.py',
563563
u'ckan/tests/logic/test_validators.py',
564564
u'ckan/tests/migration/__init__.py',
565-
u'ckan/tests/migration/test_revision_legacy_code.py',
565+
u'test_revision_legacy_code.py',
566566
u'ckan/tests/model/__init__.py',
567567
u'ckan/tests/model/test_license.py',
568568
u'ckan/tests/model/test_resource.py',

ckan/tests/migration/test_revision_legacy_code.py test_revision_legacy_code.py

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# encoding: utf-8
22

3+
# This file is at the top of the ckan repository, because it needs to be run
4+
# separately from all the other tests, because when it imports
5+
# revision_legacy_code.py it changes the core model, which causes a number of
6+
# test failures which we're not concerned about.
7+
38
from difflib import unified_diff
49
from pprint import pprint, pformat
510

0 commit comments

Comments
 (0)