This repository has been archived by the owner on Mar 22, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make plugin auto-used by pytest when installed
- Loading branch information
Shahar Evron
committed
Apr 27, 2020
1 parent
24bc616
commit bf2c406
Showing
4 changed files
with
15 additions
and
5 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,4 +1,12 @@ | ||
"""Plugin entrypoint | ||
Prefer loading CKAN's built in pytest environment. If not found, fall back to | ||
the implementation bundled in this package | ||
""" | ||
|
||
try: | ||
from ckan.tests.pytest_ckan.ckan_setup import * | ||
from ckan.tests.pytest_ckan.fixtures import * | ||
except ImportError: | ||
from .impl.plugin import * | ||
from .impl.fixtures import * |
This file was deleted.
Oops, something went wrong.
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,3 +1,4 @@ | ||
# -*- coding: utf-8 -*- | ||
import os | ||
import sys | ||
|
||
|
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 |
---|---|---|
|
@@ -7,5 +7,10 @@ | |
description='Backport of CKAN 2.9 pytest plugin and fixtures to CAKN 2.8', | ||
author='Shahar Evron', | ||
author_email='[email protected]', | ||
install_requires=[], | ||
install_requires=[ | ||
'pytest', | ||
'ckan' | ||
], | ||
entry_points={"pytest11": ["ckan = pytest_ckan"]}, | ||
classifiers=["Framework :: Pytest"], | ||
) |