Esempio n. 1
0
 def fail(self):
     with test_loop() as loop:
         ctags = Ctags(None)
         p = Project.of('invalid', Path(temp_path('invalid')),
                        tpe=Just('c'), langs=List('c'))
         result = loop.run_until_complete(ctags.gen(p))
         result.success.should_not.be.ok
Esempio n. 2
0
 def run(self):
     with test_loop() as loop:
         ctags = Ctags(None)
         p = Project.of(self.pypro1_name, self.pypro1_root,
                        tpe=Just(self.pypro1_type),
                        langs=List(self.pypro1_type))
         p.remove_tag_file()
         result = loop.run_until_complete(ctags.gen(p))
         result.success.should.be.ok
     p.tag_file.exists().should.be.ok
     ctags.current.k.should.be.empty