Hi Adam,

Am 25.01.2017 um 21:01 schrieb Adam Stein:
When I need to set the date to a known day for tests, I use forbiddenfruit
(https://github.com/clarete/forbiddenfruit).

Thanks for mentioning this, I didn't know it before!

However, I have not yet tried it, because I had hoped that there was a less intrusive method to achieve similar results and mostly because I still find it difficult to understand the ramifications of this approach with functional tests, that is, when LiveServerTestCase takes the server part (to be affected by forbiddenfruit) while the test case itself uses Selenium (and should, at least in theory, not be affected, e.g. for taking time measurements or log time stamps).

Alas, I guess that I'll just give up and write my tests in a work-around manner that circumvents details that depend on server timeā€¦

Best regards,
Carsten

--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/4144b6e0-e377-a8e3-f9ab-ba6ad265acfb%40cafu.de.
For more options, visit https://groups.google.com/d/optout.

Reply via email to