Commit Graph

6273 Commits

Author SHA1 Message Date
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
Daira Hopwood
38a6d60f1a Remove workaround for collective_dircap and repair some tests.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2015-07-21 00:48:10 +01:00
Daira Hopwood
e61130395d Eliminate near-duplicate code in CLITestMixin.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2015-07-21 00:48:10 +01:00
Daira Hopwood
8f3fe4dffe Fix test_create_magic_folder_service (was test_create_magic_folder).
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2015-07-21 00:48:00 +01:00
Daira Hopwood
51f0c4de69 Add missing Deferred creation.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2015-07-21 00:42:35 +01:00
David Stainton
4b049fca56 fix references to notifier 2015-07-21 00:42:35 +01:00
David Stainton
4e714179f9 various pyflakes fixes 2015-07-21 00:42:35 +01:00
Daira Hopwood
7ee8ab4ac7 Add ready method to MockMagicFolder to partially fix a test.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2015-07-21 00:42:35 +01:00