aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-03-15 15:39:59 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-03-15 15:39:59 -0700
commit705ac0fba2dc879115509006ce4fdfae8c9fc5c0 (patch)
treef6b15989ba1b314baec8e0914fbd8749ac111938 /python
parent7f708f1835be5011cb393d0f53252893369989d6 (diff)
downloadfatcat-705ac0fba2dc879115509006ce4fdfae8c9fc5c0.tar.gz
fatcat-705ac0fba2dc879115509006ce4fdfae8c9fc5c0.zip
update dev setup instructions
Diffstat (limited to 'python')
-rw-r--r--python/README.md2
-rw-r--r--python/example.env (renamed from python/env.example)0
-rw-r--r--python/tests/fixtures.py4
3 files changed, 3 insertions, 3 deletions
diff --git a/python/README.md b/python/README.md
index 2760885c..fe9a411d 100644
--- a/python/README.md
+++ b/python/README.md
@@ -34,7 +34,7 @@ server on the same machine by default), use:
# will listen on http://localhost:9810 by default
pipenv run fatcat_webface.py
-Almost all configuration is done via environment variables; see `env.example`
+Almost all configuration is done via environment variables; see `example.env`
for a list of settings. If you copy this file to `.env` it will be sourced by
`pipenv` automatically; you can also load it in your shell like `source .env`.
diff --git a/python/env.example b/python/example.env
index 4bf76e21..4bf76e21 100644
--- a/python/env.example
+++ b/python/example.env
diff --git a/python/tests/fixtures.py b/python/tests/fixtures.py
index 3cc275b3..d7ebdac8 100644
--- a/python/tests/fixtures.py
+++ b/python/tests/fixtures.py
@@ -11,7 +11,7 @@ import fatcat_client
@pytest.fixture
def full_app():
- load_dotenv(dotenv_path="./env.example")
+ load_dotenv(dotenv_path="./example.env")
fatcat_web.app.testing = True
fatcat_web.app.debug = False
return fatcat_web.app
@@ -22,7 +22,7 @@ def app(full_app):
@pytest.fixture
def api():
- load_dotenv(dotenv_path="./env.example")
+ load_dotenv(dotenv_path="./example.env")
conf = fatcat_client.Configuration()
conf.host = "http://localhost:9411/v0"
conf.api_key["Authorization"] = os.getenv("FATCAT_API_AUTH_TOKEN")