Skip to content

Commit

Permalink
test_revision_legacy_code is tested last. activity_streams_session_ex…
Browse files Browse the repository at this point in the history
…tension is unused
  • Loading branch information
David Read committed Oct 29, 2019
1 parent 5f8bacf commit 75c24db
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 128 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Expand Up @@ -14,7 +14,7 @@ jobs:
CKAN_POSTGRES_PWD: pass
PGPASSWORD: ckan
NODE_TESTS_CONTAINER: 2
NOSETEST_COMMON_OPTIONS: -v --ckan --reset-db --with-pylons=test-core-circle-ci.ini --nologcapture --with-coverage --cover-package=ckan --cover-package=ckanext --with-xunit --xunit-file=/root/junit/junit.xml ckan ckanext
NOSETEST_COMMON_OPTIONS: -v --ckan --reset-db --with-pylons=test-core-circle-ci.ini --nologcapture --with-coverage --cover-package=ckan --cover-package=ckanext --with-xunit --xunit-file=/root/junit/junit.xml ckan ckanext test_revision_legacy_code
- image: postgres:10
environment:
POSTGRES_USER: ckan
Expand Down
125 changes: 0 additions & 125 deletions ckan/lib/activity_streams_session_extension.py

This file was deleted.

1 change: 0 additions & 1 deletion ckan/model/meta.py
Expand Up @@ -10,7 +10,6 @@
from sqlalchemy.orm.session import SessionExtension

import extension
import ckan.lib.activity_streams_session_extension as activity

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

Expand Down
4 changes: 4 additions & 0 deletions ckan/tests/legacy/functional/api/test_follow.py
Expand Up @@ -17,6 +17,10 @@
from ckan.tests.legacy import are_foreign_keys_supported, SkipTest, CreateTestData, call_action_api
import ckan.tests.helpers as helpers

# TEMPORARY
# import ckan.migration.revision_legacy_code


def datetime_from_string(s):
'''Return a standard datetime.datetime object initialised from a string in
the same format used for timestamps in dictized activities (the format
Expand Down
2 changes: 1 addition & 1 deletion ckan/tests/test_coding_standards.py
Expand Up @@ -562,7 +562,7 @@ def find_unprefixed_string_literals(filename):
u'ckan/tests/logic/test_schema.py',
u'ckan/tests/logic/test_validators.py',
u'ckan/tests/migration/__init__.py',
u'ckan/tests/migration/test_revision_legacy_code.py',
u'test_revision_legacy_code.py',
u'ckan/tests/model/__init__.py',
u'ckan/tests/model/test_license.py',
u'ckan/tests/model/test_resource.py',
Expand Down
@@ -1,5 +1,9 @@
# encoding: utf-8

# This file is at the top of the ckan repository, because it needs to be run
# after all the other tests, because it mucks about with the model.


from difflib import unified_diff
from pprint import pprint, pformat

Expand Down

0 comments on commit 75c24db

Please sign in to comment.