Exemplo n.º 1
0
 def test_requirements_possible(self):
     tasks = order_tasks(['dependsonb'], InstallTask)
     assert len(tasks) == 2
     assert tasks[0] == InstallTask('providesb')
     assert tasks[1] == InstallTask('dependsonb')
Exemplo n.º 2
0
 def test_requirements_impossible(self):
     with pytest.raises(PakitError):
         order_tasks(['cyclea'], InstallTask)
Exemplo n.º 3
0
 def test_no_requires(self):
     tasks = order_tasks(['providesb'], InstallTask)
     assert len(tasks) == 1
     assert tasks[0] == InstallTask('providesb')