Skip to content

Commit

Permalink
Fix #4468: os.getlogin() fails when there is no controlling terminal …
Browse files Browse the repository at this point in the history
…(running tests in build) (#4469)
  • Loading branch information
e-carlin authored May 31, 2022
1 parent 381fe67 commit 7df3709
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/role_moderation_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@
"""
from __future__ import absolute_import, division, print_function
from pykern.pkcollections import PKDict
import getpass
import os
import pytest

def setup_module(module):
os.environ.update(
SIREPO_FEATURE_CONFIG_MODERATED_SIM_TYPES='myapp',
SIREPO_AUTH_ROLE_MODERATION_MODERATOR_EMAIL=os.getlogin() + '@localhost.localdomain',
SIREPO_AUTH_ROLE_MODERATION_MODERATOR_EMAIL=getpass.getuser() + '@localhost.localdomain',
)


Expand Down

0 comments on commit 7df3709

Please sign in to comment.