We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c180e23 commit 78cdc34Copy full SHA for 78cdc34
run_tests.sh
@@ -27,9 +27,8 @@ $PIP install coverage flake8 psutil Sphinx sphinxcontrib-napoleon
27
# install testgres' dependencies
28
export PYTHONPATH=$(pwd)
29
$PIP install .
30
-
31
# test code quality
32
-flake8 .
+flake8 --ignore=F401,E501,F403 .
33
34
35
# remove existing coverage file
@@ -68,3 +67,4 @@ set +eux
68
67
69
# send coverage stats to Codecov
70
bash <(curl -s https://codecov.io/bash)
+bash
testgres/defaults.py
@@ -1,5 +1,6 @@
1
import datetime
2
import os
3
+import pwd
4
import struct
5
import uuid
6
@@ -17,7 +18,7 @@ def default_username():
17
18
Return default username (current user).
19
"""
20
- return os.getlogin()
21
+ return pwd.getpwuid(os.getuid())[0]
22
23
24
def generate_app_name():
0 commit comments