Created
March 14, 2021 15:02
-
-
Save guilhermecarvalhocarneiro/ccfbb86b1afdd994584c369fca0e356d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class TestProfissional: | |
| @pytest.fixture | |
| def init(self, db): | |
| self.nome = "Xpto" | |
| self.group = Group.objects.create(name="Profissional") | |
| self.faker = Faker("pt_BR") | |
| def test_update_pontuacao(self, init): | |
| assert self.nome == "Xpto" | |
| profissional = Profissional.objects.create( | |
| cpf=CPF().generate(), | |
| nome = self.faker.name(), | |
| email = f"{self.faker.name().lower()}@{self.faker.free_email_domain()}", | |
| telefone = self.faker.phone_number() | |
| ) | |
| assert profissional.pontuacao_bonificacao == 3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment