SpaceyaTech / mastori

Mastori is a community-driven open-source project that aims to provide a simple and efficient blogging platform built for the Dev Community
https://www.spaceyatech.com/
22 stars 54 forks source link

Unit tests of Account and User models #40

Closed aibunny closed 1 year ago

sangkips commented 1 year ago

Please normalize adding comments. For example why use assertEqual, hard coding passwords and email. I am very sure someone is asking also about this.

Tests passes succesfully Tests

aibunny commented 1 year ago

Please normalize adding comments. For example why use assertEqual, hard coding passwords and email. I am very sure someone is asking also about this.

I'll comment next time, asssertEqual() just verifies if the strings returned by the model class user and account are equal to what you have given to the database using __.save()

JimmyTron commented 1 year ago

What if we had all our tests in one place insteadvof having them on idividual apps? What would be the merits of demerits of doing so?