Skip to content

Commit

Permalink
fix old test without family info
Browse files Browse the repository at this point in the history
  • Loading branch information
TanookiVerde committed Jun 26, 2024
1 parent bb9cc51 commit 11404da
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/app/routers/entities_mrg.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ async def create_or_update_professionals(
if cbo.get("id_cbo_familia") not in occupation_family_ids:
new_occupation_families.append(
OccupationFamily(
code=cbo.get("id_cbo_familia", cbo.get("id_cbo")[:4]),
code=cbo.get("id_cbo_familia"),
name=cbo.get("cbo_familia")
)
)
Expand Down
4 changes: 3 additions & 1 deletion api/tests/test_mrg.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,9 @@ async def test_create_or_update_mrgprofessionals(
"nome": "PESSOA QUALQUER",
"cbo": [{
"id_cbo": "111415",
"cbo": "Teste"
"cbo": "Teste",
"id_cbo_familia": "1114",
"cbo_familia": "TESTE"
}],
"conselho": [{
"id_registro_conselho": "1111111",
Expand Down

0 comments on commit 11404da

Please sign in to comment.