Skip to content

Commit

Permalink
Allow configuring database PORT for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
PabloCastellano authored and therefromhere committed Mar 26, 2019
1 parent 032fe36 commit 2574ec5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
test_db_user = os.environ.get("DJSTRIPE_TEST_DB_USER", test_db_vendor)
test_db_pass = os.environ.get("DJSTRIPE_TEST_DB_PASS", "")
test_db_host = os.environ.get("DJSTRIPE_TEST_DB_HOST", "localhost")
test_db_port = os.environ.get("DJSTRIPE_TEST_DB_PORT", "")

DEBUG = True
SECRET_KEY = "djstripe"
Expand All @@ -23,7 +24,7 @@
"USER": test_db_user,
"PASSWORD": test_db_pass,
"HOST": test_db_host,
"PORT": "",
"PORT": test_db_port,
}
}
elif test_db_vendor == "mysql":
Expand All @@ -34,7 +35,7 @@
"USER": test_db_user,
"PASSWORD": test_db_pass,
"HOST": test_db_host,
"PORT": "",
"PORT": test_db_port,
}
}
elif test_db_vendor == "sqlite":
Expand Down

0 comments on commit 2574ec5

Please sign in to comment.