Skip to content

Commit 3c72410

Browse files
authored
ENH: Update to use the production url by default! (#272)
1 parent 55ca16c commit 3c72410

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ for example, with ``IMAP_DATA_DIR=/data``:
130130
To change the default URL that the package accesses, you can set
131131
the environment variable ``IMAP_DATA_ACCESS_URL`` or within the
132132
package ``imap_data_access.config["DATA_ACCESS_URL"]``. The default
133-
is the development server ``https://api.dev.imap-mission.com``.
133+
is the production server ``https://api.imap-mission.com``.
134134

135135
### Automated use with API Keys
136136

imap_data_access/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555

5656
config = {
5757
"DATA_ACCESS_URL": os.getenv("IMAP_DATA_ACCESS_URL")
58-
or "https://api.dev.imap-mission.com",
58+
or "https://api.imap-mission.com",
5959
"DATA_DIR": Path(os.getenv("IMAP_DATA_DIR") or Path.cwd() / "data"),
6060
"API_KEY": os.getenv("IMAP_API_KEY"),
6161
# Create a base64 encoded string for the username and password

tests/test_config_options.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
("config_var", "default", "expected"),
1515
[
1616
("DATA_DIR", Path.cwd() / "data", str(Path("/test/path"))),
17-
("DATA_ACCESS_URL", "https://api.dev.imap-mission.com", "https://test.url"),
17+
("DATA_ACCESS_URL", "https://api.imap-mission.com", "https://test.url"),
1818
("API_KEY", None, "test-api-key"),
1919
],
2020
)

0 commit comments

Comments
 (0)