git @ Cat's Eye Technologies ellsync / 4ea0c76
Revert tests. Chris Pressey 4 years ago
1 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
5656 main(['backup.json', 'syncdirs', 'canonical', 'cache'])
5757 self.assertFalse(os.path.exists('cache/thing'))
5858 output = sys.stdout.getvalue()
59 self.assertEqual(output.split('\n')[0], 'rsync --dry-run --archive --verbose --delete --checksum "canonical/" "cache/"')
59 self.assertEqual(output.split('\n')[0], 'rsync --dry-run --archive --verbose --delete "canonical/" "cache/"')
6060 self.assertIn('DRY RUN', output)
6161
6262 def test_apply(self):
6464 self.assertTrue(os.path.exists('cache/thing'))
6565 output = sys.stdout.getvalue()
6666 self.assertEqual(output.split('\n')[:4], [
67 'rsync --archive --verbose --delete --checksum "canonical/" "cache/"',
67 'rsync --archive --verbose --delete "canonical/" "cache/"',
6868 'sending incremental file list',
6969 'thing',
7070 ''
7474 main(['backup.json', 'sync', 'basic:', '--apply'])
7575 output = sys.stdout.getvalue()
7676 self.assertEqual(output.split('\n')[:4], [
77 'rsync --archive --verbose --delete --checksum "canonical/" "cache/"',
77 'rsync --archive --verbose --delete "canonical/" "cache/"',
7878 'sending incremental file list',
7979 'thing',
8080 ''