コード例 #1
0
 def test_get_non_updated_projects_returns_one_project(self):
     """Test JOB get non updated returns one project."""
     project = ProjectFactory.create(updated='2010-10-22T11:02:00.000000')
     projects = get_non_updated_projects()
     err_msg = "There should be one outdated project."
     assert len(projects) == 1, err_msg
     assert projects[0].name == project.name, err_msg
コード例 #2
0
ファイル: test_old_projects.py プロジェクト: PyBossa/pybossa
 def test_get_non_updated_projects_returns_one_project(self):
     """Test JOB get non updated returns one project."""
     project = ProjectFactory.create(updated='2010-10-22T11:02:00.000000')
     projects = get_non_updated_projects()
     err_msg = "There should be one outdated project."
     assert len(projects) == 1, err_msg
     assert projects[0].name == project.name, err_msg
コード例 #3
0
 def test_get_non_updated_projects_returns_none(self):
     """Test JOB get non updated returns none."""
     projects = get_non_updated_projects()
     err_msg = "There should not be any outdated project."
     assert len(projects) == 0, err_msg
コード例 #4
0
ファイル: test_old_projects.py プロジェクト: PyBossa/pybossa
 def test_get_non_updated_projects_returns_none(self):
     """Test JOB get non updated returns none."""
     projects = get_non_updated_projects()
     err_msg = "There should not be any outdated project."
     assert len(projects) == 0, err_msg