Commit Graph

6330 Commits

Author SHA1 Message Date
David Stainton
6e42c00c9c Add logic to only add object to download queue when appropriate 2015-07-28 11:09:35 -07:00
David Stainton
3fe005def0 wip 2015-07-27 17:00:39 -07:00
Daira Hopwood
69a5df6fea Try to fix some tests - WIP.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2015-07-27 17:51:40 +01:00
Daira Hopwood
8182752333 Rename and refactor path variables to be more consistent.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2015-07-27 17:51:25 +01:00
David Stainton
bcfdcf2877 WIP - fix some bugs 2015-07-24 15:12:57 -07:00
Daira Hopwood
3c77914519 Refactor MagicFolder into Uploader and Downloader classes (WIP). refs ticket:2477
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2015-07-24 00:27:26 +01:00
Daira Hopwood
4045f5844f Simplify and document the type of MagicFolder._download_scan_batch.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2015-07-23 23:15:24 +01:00
Daira Hopwood
5e8105fa91 Remove redundant call to abspath_expanduser_unicode.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2015-07-23 22:53:16 +01:00
Daira Hopwood
ce2546c471 Reduce code duplication and make sure errors from delegate commands are output.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2015-07-21 00:48:11 +01:00
Daira Hopwood
8891b7d550 Change INVITE_SEPARATOR to '+'.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2015-07-21 00:48:11 +01:00
Daira Hopwood
6e6a771847 Rename MagicFolderCLITestMixin to MagicFolderTestMixin.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2015-07-21 00:48:11 +01:00
Daira Hopwood
fc31a4f5ef Fix tests.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2015-07-21 00:48:11 +01:00
Daira Hopwood
d993e015aa Add checks (that currently fail) for version in local db.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2015-07-21 00:48:11 +01:00
Daira Hopwood
afa9d9ae10 Use relative paths in magic folder db.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2015-07-21 00:48:11 +01:00
Daira Hopwood
ad4b4843c2 WIP
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2015-07-21 00:48:11 +01:00
Daira Hopwood
2bd93d2e02 Fix some pyflakes errors and warnings.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2015-07-21 00:48:11 +01:00
Daira Hopwood
f423e72062 Repair backupdb.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2015-07-21 00:48:11 +01:00
David Stainton
57fc30be44 fix bug in test_errors and add test
- test that we report the correct error when
a write cap is passed as a collective dircap
2015-07-21 00:48:11 +01:00
David Stainton
a6b75aaa5d add kw arg to _get_count for tests 2015-07-21 00:48:11 +01:00
David Stainton
16c72decc0 make test_magic_folder use non-ascii chars in nickname 2015-07-21 00:48:11 +01:00
David Stainton
42602ba290 Make alice bob test use non-ascii chars in nicknames 2015-07-21 00:48:11 +01:00
David Stainton
598695010a add comments and blank lines to make setup_alice_and_bob more readable 2015-07-21 00:48:11 +01:00
David Stainton
444c732f81 rename to do_invite and do_join for tests 2015-07-21 00:48:11 +01:00
David Stainton
d57d30c60f rename to do_create_magic_folder for tests 2015-07-21 00:48:11 +01:00
David Stainton
c7e0fc52e3 revert previous additional blank line 2015-07-21 00:48:11 +01:00
David Stainton
12fc5e6161 wrap long import line 2015-07-21 00:48:11 +01:00
David Stainton
3b6f51abdc wrap long line and spell magic folder without hyphen 2015-07-21 00:48:11 +01:00
David Stainton
3612ca0504 Spell magic folder without the hyphen 2015-07-21 00:48:10 +01:00
David Stainton
847e8e99e9 wrap long line 2015-07-21 00:48:10 +01:00
David Stainton
48a8dfde4a replace bare asserts with usage error message 2015-07-21 00:48:10 +01:00
David Stainton
a7f22dff67 get rid of another diminish hack and force alias args to end with ':' 2015-07-21 00:48:10 +01:00
David Stainton
888089a689 get rid of terrible diminish cap hack 2015-07-21 00:48:10 +01:00
David Stainton
4e8d8e076a minor corrections 2015-07-21 00:48:10 +01:00
David Stainton
bec31e9810 slightly better error message 2015-07-21 00:48:10 +01:00
David Stainton
ccef5c4c44 change spelling module variable INVITE_SEPARATOR 2015-07-21 00:48:10 +01:00
David Stainton
f6567d4833 don't double increment version 2015-07-21 00:48:10 +01:00
David Stainton
d7d429deb3 start with version 0 2015-07-21 00:48:10 +01:00
David Stainton
3ea5031261 simplify _db_file_is_uploaded 2015-07-21 00:48:10 +01:00
David Stainton
0118c5105b better handle download failures 2015-07-21 00:48:10 +01:00
David Stainton
88155f466c remove superfluous plus sign 2015-07-21 00:48:10 +01:00
David Stainton
2d1e05ed4d fix remote scan procedure 2015-07-21 00:48:10 +01:00
David Stainton
f0cddcb8da replace calls to filter with list comprehension 2015-07-21 00:48:10 +01:00
David Stainton
3e571fc4cf simplify _should_download helper method 2015-07-21 00:48:10 +01:00
David Stainton
606b2aa029 rename ignore count to upload ignore count 2015-07-21 00:48:10 +01:00
David Stainton
11b218f8e5 remove superfluous constructor which the parent class already has 2015-07-21 00:48:10 +01:00
David Stainton
3f80101f68 Make backupdb schema evolution more visible 2015-07-21 00:48:10 +01:00
David Stainton
b82f66de07 alice bob test alice rewrite file 2015-07-21 00:48:10 +01:00
David Stainton
bdffc3c484 unlink old version of file from remote tahoe upload dirnode 2015-07-21 00:48:10 +01:00
David Stainton
21da540e5e for local fs scan compare local version with remote 2015-07-21 00:48:10 +01:00
David Stainton
3fb841adc4 Fix test_errors to check for exception message associated with
an invalid collective dircap.
2015-07-21 00:48:10 +01:00