@frigid basalt I figured that out. I removed flask_test and it seems to work. Problem is I am getting a weird error
> assert b'Welcome to the app' in response.data
E AssertionError: assert b'Welcome to the app' in b'<!DOCTYPE html>\n<html>\n<head>\n \n<title> flashblog register </title>\n <!-- The title will say home -->\n ...n </form> \n \n <!-- From home. Prints userpost information -->\n \n \n</body>\n</html>'
E + where b'<!DOCTYPE html>\n<html>\n<head>\n \n<title> flashblog register </title>\n <!-- The title will say home -->\n ...n </form> \n \n <!-- From home. Prints userpost information -->\n \n \n</body>\n</html>' = <WrapperTestResponse 2230 bytes [200 OK]>.data
app\tests\functional\test_login.py:25: AssertionError
I changed the code to a 200 and the register route etc and .
For some reason this line is causing trouble
assert b'Flask User management Example' in response.data
and causes the error above. I am using wtf forms, sqlalchemy and of course flask.
I think the tutorial is using sqlalchemy. I wrote the code similar to https://github.com/CoreyMSchafer/code_snippets/tree/master/Python/Flask_Blog/11-Blueprints and there code is https://gitlab.com/patkennedy79/flask_user_management_example/-/blob/main/project/models.py
I don't know if github and gitlabs links are needed. Any ideas how to fix the code.
Thanks.
