DEV Community

Discussion on: Flask Rest API -Part:6- Testing REST APIs

Collapse
 
skow0020 profile image
Colin Skow • Edited

You've got errors in your final versions of your test files:

  1. test_signup.py line 'class SignupTest(unittest.TestCase):' should be 'class SignupTest(BaseCase):'
  2. test_create_movie.py lines """ from tests.BaseCase import BasicTest class TestUserLogin(BasicTest): def test_successful_login(self): """ should be """ from tests.BaseCase import BaseCase class TestUserLogin(BaseCase): def test_create_movie(self): """ ^^^ not very readable but I assume you will figure it out
Collapse
 
paurakhsharma profile image
Paurakh Sharma Humagain

Thank you so much for pointing that out. 😊
I have updated the article to fix it.

Collapse
 
skow0020 profile image
Colin Skow

Welcome!