Skip to content

Commit

Permalink
Commit a test I've been using for config changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jinnatar committed Apr 4, 2017
1 parent fc3f722 commit b9ac44e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cozify/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# finally create our own config dir
config-dir = "%s/%s" % (xdg-config-home, 'python-cozify')
if not os.path.isdir(config-dir):
os.mkdir(config-dir, 0700)
os.mkdir(config-dir, 0o0700)

stateFile = "%s/python-cozify.cfg" % config-dir
state = None
Expand Down
7 changes: 7 additions & 0 deletions tests/configtest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env python3

from cozify import cloud, config, hub

config.setStatePath('/tmp/python-cozify-testing.cfg')

print(hub.getDevices())

0 comments on commit b9ac44e

Please sign in to comment.