Skip to content

Commit

Permalink
Test fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
idlesign committed Dec 28, 2018
1 parent 867e976 commit bee9544
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions tests/contrib/test_django.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,11 @@ def test_uwsgi_sysinit_systemd(patch_base_command, capsys):

out, err = capsys.readouterr()

print(out)
uid = os.getuid()

assert not err
assert ('-o %s -g %s' % (os.getuid(), os.getgid())) in out
assert '/run/user/1000/dummy' in out
assert ('-o %s -g %s' % (uid, os.getgid())) in out
assert ('/run/user/%s/dummy' % uid) in out
assert 'Description=dummy uWSGI Service' in out
assert 'bin/python' in out
assert 'dummy/manage.py uwsgi_run' in out
Expand All @@ -116,8 +116,6 @@ def test_uwsgi_sysinit_upstart(patch_base_command, capsys):

out, err = capsys.readouterr()

print(out)

assert not err
assert 'description "dummy uWSGI Service"' in out
assert 'bin/python' in out
Expand Down

0 comments on commit bee9544

Please sign in to comment.