You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As the docstring describes, this test needed to be removed for complications with the hardcoded manner in which it tests the functionality. I think magic mocks can solve this pretty well, but it someone has a better idea feel free to comment upon it
@network_needed
@requires_auth
@pytest.mark.skip(reason="Still needs work")
def test_student_logged_in():
"""This test used to work on the second semester of 2019.
Then, the student progressed to other classes and the test began to fail.
Solving this test will require a mock, or an adaptation of the student() function
in order to fix the target semester of interest (if that is even possible) """
cagr = CAGR()
cagr.login(**CREDENTIALS)
student = cagr.student("16100719")
assert student.name == "Cauê Baasch de Souza"
assert student.program == "CIÊNCIAS DA COMPUTAÇÃO"
assert student.classes == [
StudentClass(
name="Redes de Computadores I",
subject_id="INE5414",
class_id="04208",
),
StudentClass(
name="Construção de Compiladores",
subject_id="INE5426",
class_id="06208",
),
StudentClass(
name="Planejamento e Gestão de Projetos",
subject_id="INE5427",
class_id="06208",
),
StudentClass(
name="Introdução ao Trabalho de Conclusão de Curso",
subject_id="INE5453",
class_id="06208",
),
StudentClass(
name="Bancos de Dados III",
subject_id="INE5600",
class_id="06238",
),
StudentClass(
name="Introdução à Internacionalização e Localização de Software",
subject_id="INE5653",
class_id="07238",
)
]
The text was updated successfully, but these errors were encountered:
As the docstring describes, this test needed to be removed for complications with the hardcoded manner in which it tests the functionality. I think magic mocks can solve this pretty well, but it someone has a better idea feel free to comment upon it
The text was updated successfully, but these errors were encountered: