DEV Community

Discussion on: PyTest with Django REST Framework: From Zero to Hero

Collapse
 
petrdanecek profile image
Petr Danecek

Hi Lucas,

I'm struggeling to make this part working:

class TestFilledTransactionSerializer:

    @pytest.mark.unit
    def test_serialize_model(self, ftd):
        t = FilledTransactionFactory.build()
        expected_serialized_data = ftd(t)
Enter fullscreen mode Exit fullscreen mode

where the ftd is defined or from where it is coming from?

Thanks!