Skip to content

Commit dc22df0

Browse files
author
Arthur Jen
authored
Merge pull request #8 from fortmatic/ajen_issue_7_update_base_url_and_bump_version
Update base url and bump version
2 parents d4b833e + 14b0f2a commit dc22df0

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

magic_admin/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
base_url = 'https://api.stagef.magic.link'
1+
base_url = 'https://api.magic.link'
22

33
api_secret_api_key_missing_message = 'API secret key is missing. Please specify ' \
44
'an API secret key when you instantiate the `Magic(api_secret_key=<KEY>)` ' \

magic_admin/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
VERSION = '0.0.2'
1+
VERSION = '0.0.3'

setup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@
99

1010

1111
def read_version():
12+
version_contents = {}
1213
with open(join(dirname(__file__), 'magic_admin', 'version.py')) as fh:
13-
version_string = fh.read()
14+
exec(fh.read(), version_contents)
1415

15-
return str(version_string.rstrip().replace(' ', '').split('=')[-1])
16+
return version_contents['VERSION']
1617

1718

1819
def load_readme():

tests/unit/config_test.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
from magic_admin.config import base_url
2+
3+
4+
def test_base_url():
5+
assert base_url == 'https://api.magic.link'

0 commit comments

Comments
 (0)