File tree Expand file tree Collapse file tree 3 files changed +2
-20
lines changed
Expand file tree Collapse file tree 3 files changed +2
-20
lines changed Original file line number Diff line number Diff line change @@ -226,7 +226,7 @@ This can be used to run tests on an invisible virtual display by prepending the
226226 $ xvfb-run pytest ...
227227
228228We have implemented demodata as data base for testing. On first call of pytest a set of demodata becomes stored
229- in a /tmp/mss* folder. If you have installed gitpython a postfix of the revision head is added.
229+ in a /tmp/mss* folder.
230230
231231
232232Setup MSWMS server
Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ pytest-cov
1212sphinx
1313sphinx_rtd_theme
1414sphinxcontrib-video
15- gitpython
1615pynco
1716conda-verify
1817pytest-reverse
Original file line number Diff line number Diff line change 2828import os
2929import fs
3030import tempfile
31- import logging
3231from fs .tempfs import TempFS
3332
34- try :
35- import git
36- except ImportError :
37- SHA = ""
38- else :
39- path = os .path .dirname (os .path .realpath (__file__ ))
40- repo = git .Repo (path , search_parent_directories = True )
41- logging .debug (path )
42- try :
43- # this is for local development important to get a fresh named tmpdir
44- SHA = repo .head .object .hexsha [0 :10 ]
45- except (ValueError , BrokenPipeError ) as ex :
46- logging .debug ("Unknown Problem: %s" , ex )
47- # mounted dir in docker container and owner is not root
48- SHA = ""
49-
5033CACHED_CONFIG_FILE = None
5134SERVER_CONFIG_FILE = "mswms_settings.py"
5235MSCOLAB_CONFIG_FILE = "mscolab_settings.py"
5336MSCOLAB_AUTH_FILE = "mscolab_auth.py"
54- ROOT_FS = TempFS (identifier = f "msui{ SHA } " )
37+ ROOT_FS = TempFS (identifier = "msui" )
5538OSFS_URL = ROOT_FS .geturl ("" , purpose = "fs" )
5639
5740ROOT_DIR = ROOT_FS .getsyspath ("" )
You can’t perform that action at this time.
0 commit comments