@@ -48,10 +48,12 @@ Before installing dependencies, activate the virtualenv:
48
48
49
49
source env/bin/activate
50
50
51
- Install the app and its dependencies by running the following command from the
51
+ Install the app and its dependencies by running the following commands from the
52
52
base directory of the project:
53
53
54
- pip install -e .
54
+ pip install --upgrade pip
55
+ pip install wheel pip-tools
56
+ pip-sync requirements.txt requirements-dev.txt
55
57
56
58
### Redis
57
59
@@ -158,7 +160,7 @@ To do, first activate the project's virtual environment:
158
160
Then run the ` flask ` command:
159
161
160
162
$ FLASK_APP=redisolar flask run --port=8001
161
-
163
+
162
164
## Running tests
163
165
164
166
You can run ` make test ` to run the unit tests. Doing so will build
@@ -169,7 +171,7 @@ a virtualenv automatically if you have not already done so.
169
171
You can run individual tests by calling ` pytest ` manually. To do, first activate the project's virtual environment:
170
172
171
173
$ source env/bin/activate
172
-
174
+
173
175
Then run ` pytest ` with whatever options you want. For example, here is how you
174
176
run a specific test:
175
177
@@ -189,14 +191,14 @@ You might see an error like this (or many of them) when you try to run the
189
191
tests:
190
192
191
193
ERROR tests/scripts/test_update_if_lowest.py::test_update_if_lowest_unchanged - redis.exceptions.ConnectionError: Error 61 connecting to localhost:6379. Connection refused.
192
-
194
+
193
195
The error is telling you that Redis is not running on port 6379. Make sure
194
196
you've started Redis -- exactly how to do so depends on your operation system
195
197
and the way you installed Redis. For example, if you installed via Homebrew on a
196
198
Mac, the command is:
197
199
198
- brew services start redis
199
-
200
+ brew services start redis
201
+
200
202
### Why do I get an "Authentication required" error when I try to run the tests/dev server?
201
203
202
204
Your Redis instance requires a username and/or password to connect. First, find
0 commit comments