pytest-girder 3.2.13.dev11__tar.gz → 3.2.15__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.13.dev11/pytest_girder.egg-info → pytest_girder-3.2.15}/PKG-INFO +1 -1
- {pytest_girder-3.2.13.dev11 → pytest_girder-3.2.15}/pytest_girder/fixtures.py +18 -3
- {pytest_girder-3.2.13.dev11 → pytest_girder-3.2.15/pytest_girder.egg-info}/PKG-INFO +1 -1
- {pytest_girder-3.2.13.dev11 → pytest_girder-3.2.15}/setup.py +6 -1
- {pytest_girder-3.2.13.dev11 → pytest_girder-3.2.15}/LICENSE +0 -0
- {pytest_girder-3.2.13.dev11 → pytest_girder-3.2.15}/MANIFEST.in +0 -0
- {pytest_girder-3.2.13.dev11 → pytest_girder-3.2.15}/pyproject.toml +0 -0
- {pytest_girder-3.2.13.dev11 → pytest_girder-3.2.15}/pytest_girder/__init__.py +0 -0
- {pytest_girder-3.2.13.dev11 → pytest_girder-3.2.15}/pytest_girder/assertions.py +0 -0
- {pytest_girder-3.2.13.dev11 → pytest_girder-3.2.15}/pytest_girder/plugin.py +0 -0
- {pytest_girder-3.2.13.dev11 → pytest_girder-3.2.15}/pytest_girder/plugin_registry.py +0 -0
- {pytest_girder-3.2.13.dev11 → pytest_girder-3.2.15}/pytest_girder/utils.py +0 -0
- {pytest_girder-3.2.13.dev11 → pytest_girder-3.2.15}/pytest_girder/web_client.py +0 -0
- {pytest_girder-3.2.13.dev11 → pytest_girder-3.2.15}/pytest_girder.egg-info/SOURCES.txt +0 -0
- {pytest_girder-3.2.13.dev11 → pytest_girder-3.2.15}/pytest_girder.egg-info/dependency_links.txt +0 -0
- {pytest_girder-3.2.13.dev11 → pytest_girder-3.2.15}/pytest_girder.egg-info/entry_points.txt +0 -0
- {pytest_girder-3.2.13.dev11 → pytest_girder-3.2.15}/pytest_girder.egg-info/requires.txt +0 -0
- {pytest_girder-3.2.13.dev11 → pytest_girder-3.2.15}/pytest_girder.egg-info/top_level.txt +0 -0
- {pytest_girder-3.2.13.dev11 → pytest_girder-3.2.15}/setup.cfg +0 -0
|
@@ -3,6 +3,7 @@ import mongomock
|
|
|
3
3
|
import os
|
|
4
4
|
import pytest
|
|
5
5
|
import shutil
|
|
6
|
+
import time
|
|
6
7
|
import unittest.mock
|
|
7
8
|
|
|
8
9
|
from .plugin_registry import PluginRegistry
|
|
@@ -60,7 +61,11 @@ def db(request):
|
|
|
60
61
|
# Since models store a local reference to the current database, we need to force them all to
|
|
61
62
|
# reconnect
|
|
62
63
|
for model in model_base._modelSingletons:
|
|
63
|
-
|
|
64
|
+
try:
|
|
65
|
+
model.reconnect()
|
|
66
|
+
except OSError:
|
|
67
|
+
# Ignore lazy index creation errors
|
|
68
|
+
pass
|
|
64
69
|
|
|
65
70
|
# Use faster password hashing to avoid unnecessary testing bottlenecks. Any test case
|
|
66
71
|
# that creates a user goes through the password hashing process, so we avoid actual bcrypt.
|
|
@@ -197,12 +202,22 @@ def fsAssetstore(db, request):
|
|
|
197
202
|
path = os.path.join(ROOT_DIR, 'tests', 'assetstore', name)
|
|
198
203
|
|
|
199
204
|
if os.path.isdir(path):
|
|
200
|
-
|
|
205
|
+
for _ in range(5):
|
|
206
|
+
try:
|
|
207
|
+
shutil.rmtree(path)
|
|
208
|
+
break
|
|
209
|
+
except Exception:
|
|
210
|
+
time.sleep(1)
|
|
201
211
|
|
|
202
212
|
yield Assetstore().createFilesystemAssetstore(name=name, root=path)
|
|
203
213
|
|
|
204
214
|
if os.path.isdir(path):
|
|
205
|
-
|
|
215
|
+
for _ in range(5):
|
|
216
|
+
try:
|
|
217
|
+
shutil.rmtree(path)
|
|
218
|
+
break
|
|
219
|
+
except Exception:
|
|
220
|
+
time.sleep(1)
|
|
206
221
|
|
|
207
222
|
|
|
208
223
|
__all__ = ('admin', 'db', 'fsAssetstore', 'server', 'boundServer', 'user', 'smtp')
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import os
|
|
2
|
+
import re
|
|
2
3
|
|
|
3
4
|
from setuptools import find_packages, setup
|
|
4
5
|
|
|
@@ -12,7 +13,11 @@ def prerelease_local_scheme(version):
|
|
|
12
13
|
"""
|
|
13
14
|
from setuptools_scm.version import get_local_node_and_date
|
|
14
15
|
|
|
15
|
-
|
|
16
|
+
# this regex allows us to publish pypi packages from master, our LTS maintenance branches, and
|
|
17
|
+
# our next major version integration branches
|
|
18
|
+
pattern = r'master|[0-9]+\.x-maintenance|v[0-9]+-integration'
|
|
19
|
+
|
|
20
|
+
if re.match(pattern, os.getenv('CIRCLE_BRANCH', '')):
|
|
16
21
|
return ''
|
|
17
22
|
else:
|
|
18
23
|
return get_local_node_and_date(version)
|
|
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
|
|
File without changes
|
{pytest_girder-3.2.13.dev11 → pytest_girder-3.2.15}/pytest_girder.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|