diff options
author | Lars Wirzenius <liw@liw.fi> | 2019-07-14 12:50:04 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2019-08-03 21:06:50 +0300 |
commit | 581f6cd53f57599326439dccb355e882e7858faa (patch) | |
tree | 19236daf6feaab66dd07b8cbcdb609db4b653be1 /ick2/projectapi_tests.py | |
parent | 97f3390944d2189d6bf0be2f2d451784c71e1856 (diff) | |
download | ick2-581f6cd53f57599326439dccb355e882e7858faa.tar.gz |
Add: MemoryPersitentState
Diffstat (limited to 'ick2/projectapi_tests.py')
-rw-r--r-- | ick2/projectapi_tests.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ick2/projectapi_tests.py b/ick2/projectapi_tests.py index b6ec9e9..5be2a58 100644 --- a/ick2/projectapi_tests.py +++ b/ick2/projectapi_tests.py @@ -1,4 +1,4 @@ -# Copyright (C) 2017-2018 Lars Wirzenius +# Copyright (C) 2017-2019 Lars Wirzenius # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or @@ -27,8 +27,7 @@ class ProjectAPITests(unittest.TestCase): def setUp(self): self.tempdir = tempfile.mkdtemp() self.statedir = os.path.join(self.tempdir, 'state/dir') - self.state = ick2.FilePersistentState() - self.state.set_directory(self.statedir) + self.state = ick2.MemoryPersistentState() def tearDown(self): shutil.rmtree(self.tempdir) |