diff options
author | Lars Wirzenius <liw@liw.fi> | 2015-08-28 19:25:35 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2015-08-28 19:25:35 +0300 |
commit | 7a22c2d18c1cc8589a7a638ca875a469995e717e (patch) | |
tree | 0f06df2fefcd810209b590fb3a6e771ea1345fa9 /obnamlib/repo_interface.py | |
parent | c114ab0fc48a2cf39bdf1c47f5b40f95c111acb1 (diff) | |
download | obnam-7a22c2d18c1cc8589a7a638ca875a469995e717e.tar.gz |
Fix REPO_FILE_MTIME to be REPO_FILE_MTIME_SEC
Diffstat (limited to 'obnamlib/repo_interface.py')
-rw-r--r-- | obnamlib/repo_interface.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/obnamlib/repo_interface.py b/obnamlib/repo_interface.py index 14ed3dc5..c1849ee2 100644 --- a/obnamlib/repo_interface.py +++ b/obnamlib/repo_interface.py @@ -1829,19 +1829,19 @@ class RepositoryInterfaceTests(unittest.TestCase): # pragma: no cover gen_id = self.create_generation() self.repo.add_file(gen_id, '/foo/bar') self.repo.set_file_key( - gen_id, '/foo/bar', obnamlib.REPO_FILE_MTIME, 123) + gen_id, '/foo/bar', obnamlib.REPO_FILE_MTIME_SEC, 123) # Remove the file. Key should be removed. self.repo.remove_file(gen_id, '/foo/bar') self.assertRaises( obnamlib.RepositoryFileDoesNotExistInGeneration, self.repo.get_file_key, - gen_id, '/foo/bar', obnamlib.REPO_FILE_MTIME) + gen_id, '/foo/bar', obnamlib.REPO_FILE_MTIME_SEC) # Add the file back. Key should still be removed. self.repo.add_file(gen_id, '/foo/bar') value = self.repo.get_file_key( - gen_id, '/foo/bar', obnamlib.REPO_FILE_MTIME) + gen_id, '/foo/bar', obnamlib.REPO_FILE_MTIME_SEC) self.assertEqual(value, 0) def test_can_add_a_file_then_remove_then_add_it_again(self): |