-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36 from d0ugal/dev
Working towards a 1.1.0
- Loading branch information
Showing
12 changed files
with
162 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Dropbox_Upload 1.1.0 (2018-11-14) | ||
================================= | ||
|
||
Features | ||
-------- | ||
|
||
- Add a new "filename" setting to customise the filenames saved in dropbox (#15) | ||
- The dropbox_dir is now validated to ensure it isn't an empty string. (#16) | ||
- Add a warning if snapshots are not "protected", adding a password is always a good idea (#31) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
class InvalidConfig(Exception): | ||
pass |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[tool.towncrier] | ||
package = "dropbox_upload" | ||
package_dir = "dropbox-upload" | ||
filename = "CHANGELOG.rst" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import json | ||
|
||
import pytest | ||
|
||
from dropbox_upload import config, exceptions | ||
|
||
|
||
def test_config_dropbox_dir(tmpdir): | ||
|
||
p = tmpdir.join("config.json") | ||
p.write(json.dumps({"dropbox_dir": "/"})) | ||
|
||
cfg = config.load_config(p.strpath) | ||
assert cfg["dropbox_dir"] == "/" | ||
|
||
|
||
def test_config_dropbox_dir_invalid(tmpdir): | ||
|
||
p = tmpdir.join("config.json") | ||
p.write(json.dumps({"dropbox_dir": ""})) | ||
|
||
cfg = config.load_config(p.strpath) | ||
|
||
with pytest.raises(exceptions.InvalidConfig): | ||
config.validate(cfg) |