Example #1
0
 def show(self):
     n = 'some name'
     d = Path('/dir/to/project')
     p2 = Projects() + Project.of(n, d)
     p2.show().should.equal(List('{}: {}'.format(n, d)))
     p2.show(List(n)).should.equal(List('{}: {}'.format(n, d)))
     str(p2).should.equal("Projects(Project('{}'))".format(n))
Example #2
0
 def remove(self):
     n = 'some name'
     d = '/dir/to/project'
     t = 'sometype'
     p2 = Projects() + Project.of(n, Path(d), Just(t))
     pro = p2.project('{}/{}'.format(t, n))
     pro.map(_.root).should.equal(Just(Path(d)))
     (p2 - pro._get).projects.should.be.empty