Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* test_banner_creation uses the active banner. the service method which is tested validates the data over the schema where start_datetime and end_datetime is a required field and it has to look like: '%Y-%m-%d %H:%M:%S' * the problem is that test_read_banner uses the same banner to test the read service. the change in "active" has the effect that the stored value in the database is not like "2024-07-10 12:04:03.348391" which it is due the strftime function is not used. db.DateTime could only bring back the date in form of a datetime object which is then used in isoformat if the value in the database contains the ".34383" part. * therefore the easiest solution is to use for test_read_banner the "other" banner * ATTENTION: be cautious during the migration from utcnow to now(timezone.utc)
- Loading branch information