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
Daira Hopwood
32cad77b95
Fixes to Magic Folder client initialization.
...
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2015-07-21 00:42:35 +01:00
David Stainton
31d6430d10
remove some superfluous print statements
2015-07-21 00:42:35 +01:00
David Stainton
8cefb7a680
Fix Alice Bob mock test
2015-07-21 00:42:35 +01:00
David Stainton
4a798883be
fix test_persistence
2015-07-21 00:42:35 +01:00
David Stainton
24d71f2f01
fix some tests
2015-07-21 00:42:35 +01:00
David Stainton
8a5c01cdab
Fix version deletion propagation and test
2015-07-21 00:42:35 +01:00
David Stainton
5fe1e13120
Add version to magic folder db schema
...
- also update handling file addition and deletion events
to utilize local and remote version numbers in the uploader...
^ untested so far althought he basic Alice + Bob test continues to pass
2015-07-21 00:42:35 +01:00
David Stainton
bdb4527d85
Add rough naive downloader + remote scan
...
- makes the basic naive Alice + Bob unit test pass
- `_should_download` is currently a stub function and
should be implemented
- handling of local+remote file versions is currently faked...
and should be implemented
2015-07-21 00:42:35 +01:00