#1355 Unit tests fail if EVENTSOURCE_SOURCE is set
Closed: Fixed 7 years ago Opened 7 years ago by jcline.

In the Vagrant environment I wanted to set up all the various services, so I configured EVENTSOURCE_SOURCE. When the tests are run with this setting, the issue.html template fails to render on some tests because g.fas_user isn't defined (https://pagure.io/pagure/blob/master/f/pagure/templates/issue.html#_482-523 is the offending section).

I'm guessing the template shouldn't assume g.fas_user is always available, but I'm not certain yet. It could be that my environment is mis-configured in some other way.


Looking at the sources of an issue page without being logged in seems to render fine. Jinja seems to handle fine undefined g.fas_user. Odd :(

My thought is that it's related to the debug mode turned on during the tests, but I can't reproduce it outside of the tests.

Anyway, I got the fix for it: #1422

@pingou changed the status to Closed

7 years ago

Login to comment on this ticket.

Metadata