pytest-girder 3.2.9.dev12__tar.gz → 3.2.9.dev16__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pytest_girder-3.2.9.dev12 → pytest_girder-3.2.9.dev16}/PKG-INFO +10 -2
- {pytest_girder-3.2.9.dev12 → pytest_girder-3.2.9.dev16}/pytest_girder/plugin_registry.py +27 -5
- {pytest_girder-3.2.9.dev12 → pytest_girder-3.2.9.dev16}/pytest_girder.egg-info/PKG-INFO +10 -2
- {pytest_girder-3.2.9.dev12 → pytest_girder-3.2.9.dev16}/LICENSE +0 -0
- {pytest_girder-3.2.9.dev12 → pytest_girder-3.2.9.dev16}/MANIFEST.in +0 -0
- {pytest_girder-3.2.9.dev12 → pytest_girder-3.2.9.dev16}/pytest_girder/__init__.py +0 -0
- {pytest_girder-3.2.9.dev12 → pytest_girder-3.2.9.dev16}/pytest_girder/assertions.py +0 -0
- {pytest_girder-3.2.9.dev12 → pytest_girder-3.2.9.dev16}/pytest_girder/fixtures.py +0 -0
- {pytest_girder-3.2.9.dev12 → pytest_girder-3.2.9.dev16}/pytest_girder/plugin.py +0 -0
- {pytest_girder-3.2.9.dev12 → pytest_girder-3.2.9.dev16}/pytest_girder/utils.py +0 -0
- {pytest_girder-3.2.9.dev12 → pytest_girder-3.2.9.dev16}/pytest_girder/web_client.py +0 -0
- {pytest_girder-3.2.9.dev12 → pytest_girder-3.2.9.dev16}/pytest_girder.egg-info/SOURCES.txt +0 -0
- {pytest_girder-3.2.9.dev12 → pytest_girder-3.2.9.dev16}/pytest_girder.egg-info/dependency_links.txt +0 -0
- {pytest_girder-3.2.9.dev12 → pytest_girder-3.2.9.dev16}/pytest_girder.egg-info/entry_points.txt +0 -0
- {pytest_girder-3.2.9.dev12 → pytest_girder-3.2.9.dev16}/pytest_girder.egg-info/requires.txt +0 -0
- {pytest_girder-3.2.9.dev12 → pytest_girder-3.2.9.dev16}/pytest_girder.egg-info/top_level.txt +0 -0
- {pytest_girder-3.2.9.dev12 → pytest_girder-3.2.9.dev16}/setup.cfg +0 -0
- {pytest_girder-3.2.9.dev12 → pytest_girder-3.2.9.dev16}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: pytest-girder
|
|
3
|
-
Version: 3.2.9.
|
|
3
|
+
Version: 3.2.9.dev16
|
|
4
4
|
Summary: A set of pytest fixtures for testing Girder applications.
|
|
5
5
|
Author: Kitware, Inc.
|
|
6
6
|
Author-email: kitware@kitware.com
|
|
@@ -13,3 +13,11 @@ Requires-Dist: mongomock
|
|
|
13
13
|
Requires-Dist: pytest>=3.6
|
|
14
14
|
Requires-Dist: pytest-cov
|
|
15
15
|
Requires-Dist: pymongo
|
|
16
|
+
Dynamic: author
|
|
17
|
+
Dynamic: author-email
|
|
18
|
+
Dynamic: classifier
|
|
19
|
+
Dynamic: license
|
|
20
|
+
Dynamic: license-file
|
|
21
|
+
Dynamic: requires-dist
|
|
22
|
+
Dynamic: requires-python
|
|
23
|
+
Dynamic: summary
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import distutils
|
|
2
2
|
from contextlib import contextmanager
|
|
3
|
+
import email.parser
|
|
3
4
|
import io
|
|
4
|
-
|
|
5
|
+
import importlib.metadata
|
|
5
6
|
from tempfile import gettempdir
|
|
6
7
|
import unittest.mock
|
|
7
8
|
|
|
@@ -13,6 +14,10 @@ class _MockDistribution:
|
|
|
13
14
|
self.location = location or gettempdir()
|
|
14
15
|
self._metadata = self._generateMetadata(name, version, description, url)
|
|
15
16
|
|
|
17
|
+
@property
|
|
18
|
+
def metadata(self):
|
|
19
|
+
return self._meta.__dict__
|
|
20
|
+
|
|
16
21
|
def get_metadata(self, *args, **kwargs):
|
|
17
22
|
return self._metadata
|
|
18
23
|
|
|
@@ -27,11 +32,14 @@ class _MockDistribution:
|
|
|
27
32
|
meta.provides_extras = ()
|
|
28
33
|
meta.license_file = None
|
|
29
34
|
meta.license_files = None
|
|
35
|
+
meta.license_expression = None
|
|
30
36
|
meta.install_requires = []
|
|
31
37
|
meta.extras_require = {}
|
|
32
38
|
pkgInfo = io.StringIO()
|
|
33
39
|
meta.write_pkg_file(pkgInfo)
|
|
34
|
-
|
|
40
|
+
self._meta = meta
|
|
41
|
+
pkgInfo.seek(0)
|
|
42
|
+
return {k: v for k, v in email.parser.Parser().parse(pkgInfo).items()}
|
|
35
43
|
|
|
36
44
|
|
|
37
45
|
class _MockEntryPoint:
|
|
@@ -65,9 +73,22 @@ class PluginRegistry:
|
|
|
65
73
|
def registerEntrypoint(self, entryPoint):
|
|
66
74
|
self._plugins.append(entryPoint)
|
|
67
75
|
|
|
68
|
-
def
|
|
76
|
+
def _listPluginEntryPoints(self, *args, **kwargs):
|
|
69
77
|
if self._include_installed_plugins:
|
|
70
|
-
|
|
78
|
+
kwargs = kwargs.copy()
|
|
79
|
+
kwargs['group'] = 'girder.plugin'
|
|
80
|
+
if len(args):
|
|
81
|
+
kwargs['group'] = args[0]
|
|
82
|
+
if len(args) > 1:
|
|
83
|
+
kwargs['name'] = args[1]
|
|
84
|
+
if hasattr(importlib.metadata.entry_points(), 'select'):
|
|
85
|
+
yield from importlib.metadata.entry_points().select(**kwargs)
|
|
86
|
+
else:
|
|
87
|
+
for epk in importlib.metadata.entry_points():
|
|
88
|
+
for ep in importlib.metadata.entry_points()[epk]:
|
|
89
|
+
if (ep.group == kwargs['group']
|
|
90
|
+
and ep.name == kwargs.get('name', ep.name)):
|
|
91
|
+
yield ep
|
|
71
92
|
yield from self._plugins
|
|
72
93
|
|
|
73
94
|
@contextmanager
|
|
@@ -76,7 +97,8 @@ class PluginRegistry:
|
|
|
76
97
|
|
|
77
98
|
try:
|
|
78
99
|
with unittest.mock.patch.object(
|
|
79
|
-
plugin, '
|
|
100
|
+
plugin, '_listPluginEntryPoints',
|
|
101
|
+
side_effect=self._listPluginEntryPoints) as mock_:
|
|
80
102
|
yield mock_
|
|
81
103
|
finally:
|
|
82
104
|
plugin._pluginRegistry = None
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: pytest-girder
|
|
3
|
-
Version: 3.2.9.
|
|
3
|
+
Version: 3.2.9.dev16
|
|
4
4
|
Summary: A set of pytest fixtures for testing Girder applications.
|
|
5
5
|
Author: Kitware, Inc.
|
|
6
6
|
Author-email: kitware@kitware.com
|
|
@@ -13,3 +13,11 @@ Requires-Dist: mongomock
|
|
|
13
13
|
Requires-Dist: pytest>=3.6
|
|
14
14
|
Requires-Dist: pytest-cov
|
|
15
15
|
Requires-Dist: pymongo
|
|
16
|
+
Dynamic: author
|
|
17
|
+
Dynamic: author-email
|
|
18
|
+
Dynamic: classifier
|
|
19
|
+
Dynamic: license
|
|
20
|
+
Dynamic: license-file
|
|
21
|
+
Dynamic: requires-dist
|
|
22
|
+
Dynamic: requires-python
|
|
23
|
+
Dynamic: summary
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pytest_girder-3.2.9.dev12 → pytest_girder-3.2.9.dev16}/pytest_girder.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{pytest_girder-3.2.9.dev12 → pytest_girder-3.2.9.dev16}/pytest_girder.egg-info/entry_points.txt
RENAMED
|
File without changes
|
|
File without changes
|
{pytest_girder-3.2.9.dev12 → pytest_girder-3.2.9.dev16}/pytest_girder.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|