You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-4Lines changed: 6 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -140,7 +140,7 @@ If you plan to run `mergin` command multiple times and you wish to avoid logging
140
140
you can use "login" command to get authorization token.
141
141
It will ask for password and then output environment variable with auth token. The returned token
142
142
is not permanent - it will expire after several hours.
143
-
```
143
+
```bash
144
144
$ mergin --username john login
145
145
Password: topsecret
146
146
Login successful!
@@ -160,15 +160,15 @@ it is possible to run other commands without specifying username/password.
160
160
### Installing deps
161
161
162
162
Python 3.7+ required. Create `mergin/deps` folder where [geodiff](https://github.com/MerginMaps/geodiff) lib is supposed to be and install dependencies:
163
-
```
163
+
```bash
164
164
rm -r mergin/deps
165
165
mkdir mergin/deps
166
166
pip install python-dateutil pytz
167
167
pip install pygeodiff --target=mergin/deps
168
168
```
169
169
170
170
For using mergin client with its dependencies packaged locally run:
171
-
```
171
+
```bash
172
172
pip install wheel
173
173
python3 setup.py sdist bdist_wheel
174
174
mkdir -p mergin/deps
@@ -180,13 +180,15 @@ For using mergin client with its dependencies packaged locally run:
180
180
### Tests
181
181
For running test do:
182
182
183
-
```
183
+
```bash
184
184
cd mergin
185
185
export TEST_MERGIN_URL=<url># testing server
186
186
export TEST_API_USERNAME=<username>
187
187
export TEST_API_PASSWORD=<pwd>
188
188
export TEST_API_USERNAME2=<username2>
189
189
export TEST_API_PASSWORD2=<pwd2>
190
+
# workspace name with controlled available storage space (e.g. 20MB), default value: testpluginstorage
191
+
export TEST_STORAGE_WORKSPACE=<workspacename>
190
192
pip install pytest pytest-cov coveralls
191
193
pytest --cov-report html --cov=mergin mergin/test/
0 commit comments