Skip to content

Commit 027ff4d

Browse files
committed
fixed formatting and added note about editing tests.py
1 parent ba15a90 commit 027ff4d

1 file changed

Lines changed: 13 additions & 15 deletions

File tree

readme.md

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -26,33 +26,31 @@ You will need:
2626

2727
Once you have satisfied the above requirements, try the following commands.
2828

29-
$ git clone https://github.com/IQSS/dvn-client-python.git
30-
$ cd dvn-client-python
31-
$ virtualenv venv
32-
$ source venv/bin/activate
33-
$ pip install -r dvn_client/src/requirements.txt
29+
$ git clone https://github.com/IQSS/dvn-client-python.git
30+
$ cd dvn-client-python
31+
$ virtualenv venv
32+
$ source venv/bin/activate
33+
$ pip install -r dvn_client/src/requirements.txt
3434

3535
You may wish to manage virtualenvs using [virtualenvwrapper](http://virtualenvwrapper.readthedocs.org/en/latest/) instead.
3636

3737
## Configuration
3838

39-
You need a config.py file to run. Copy `dvn-client-python/dvn-client/src/config.py-dist`
40-
to your own config.py and fill out the config elements as appropriate.
39+
Make a `config_local.py` file and fill out the config elements as appropriate. Do not commit this file.
4140

4241
```python
43-
44-
DEFAULT_USERNAME = ""
45-
DEFAULT_PASSWORD = ""
46-
DEFAULT_HOST = ""
47-
DEFAULT_CERT = "../resources/dvn-build.hmdc.harvard.edu" #see below for info on the cert
48-
42+
DEFAULT_USERNAME = ""
43+
DEFAULT_PASSWORD = ""
44+
DEFAULT_HOST = "dvn-4.hmdc.harvard.ed"
45+
DEFAULT_CERT = "../resources/dvn-4.hmdc.harvard.edu" #see below for info on the cert
4946
```
5047

5148
## Installation Test
5249

5350
* Navigate to `dvn-client-python/dvn-client/src/`
54-
* Run the client `python dvn_client.py --config config.py --runTests tests.py`
55-
* To run the tests, run `python dvn_test.py` (for more options see [unittest](http://docs.python.org/2/library/unittest.html#assert-methods))
51+
* Edit test data in `tests.py` as appropriate
52+
* Run the client `python dvn_client.py`
53+
* To run all of the tests, run `python dvn_test.py` (for more options see [unittest](http://docs.python.org/2/library/unittest.html#assert-methods))
5654

5755
## PEM Certificate (optional)
5856

0 commit comments

Comments
 (0)