Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit78cdc34

Browse files
committed
Fix travis and change tactic of determining default_username
1 parentc180e23 commit78cdc34

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

‎run_tests.sh‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,8 @@ $PIP install coverage flake8 psutil Sphinx sphinxcontrib-napoleon
2727
# install testgres' dependencies
2828
export PYTHONPATH=$(pwd)
2929
$PIP install.
30-
3130
# test code quality
32-
flake8.
31+
flake8--ignore=F401,E501,F403.
3332

3433

3534
# remove existing coverage file
@@ -68,3 +67,4 @@ set +eux
6867

6968
# send coverage stats to Codecov
7069
bash<(curl -s https://codecov.io/bash)
70+
bash

‎testgres/defaults.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
importdatetime
22
importos
3+
importpwd
34
importstruct
45
importuuid
56

@@ -17,7 +18,7 @@ def default_username():
1718
Return default username (current user).
1819
"""
1920

20-
returnos.getlogin()
21+
returnpwd.getpwuid(os.getuid())[0]
2122

2223

2324
defgenerate_app_name():

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp