Moves test of config file creation to its own test.
This commit is contained in:
parent
ecb1910084
commit
2720d13049
@ -140,6 +140,10 @@ class TestInit(CommandTestCase):
|
|||||||
self.assertEqual(set(self.fs['os'].listdir(pubsdir)),
|
self.assertEqual(set(self.fs['os'].listdir(pubsdir)),
|
||||||
{'bib', 'doc', 'meta', 'notes'})
|
{'bib', 'doc', 'meta', 'notes'})
|
||||||
|
|
||||||
|
def test_init_config(self):
|
||||||
|
self.execute_cmds(['pubs init'])
|
||||||
|
self.assertTrue(self.fs['os'].path.isfile(self.default_conf_path))
|
||||||
|
|
||||||
|
|
||||||
class TestAdd(DataCommandTestCase):
|
class TestAdd(DataCommandTestCase):
|
||||||
|
|
||||||
@ -536,7 +540,6 @@ class TestUsecase(DataCommandTestCase):
|
|||||||
'pubs doc add --move data/pagerank.pdf Page99'
|
'pubs doc add --move data/pagerank.pdf Page99'
|
||||||
]
|
]
|
||||||
self.execute_cmds(cmds)
|
self.execute_cmds(cmds)
|
||||||
self.assertTrue(self.fs['os'].path.isfile(self.default_conf_path))
|
|
||||||
self.assertFalse(self.fs['os'].path.exists('/data/pagerank.pdf'))
|
self.assertFalse(self.fs['os'].path.exists('/data/pagerank.pdf'))
|
||||||
|
|
||||||
def test_doc_remove(self):
|
def test_doc_remove(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user