Skip to content

Commit

Permalink
Re-enable credentials for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
matlink committed Sep 17, 2017
1 parent d505870 commit 8f912e4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ install: pip install .
script: make test
env:
global:
- secure: pwRKtlFQCTV2kSP32sCykKVD4wW0IudFduG1C3IQ4nqWURRVr7klKvp/Dkmr62gvcTk5xKgpuzVqHGAd01L6dWjBncOZmAu9Kx2rU+k3PXNdYLn9GvjA0OZ5IWqF8V5/XIQP1R8qAEX27vMdy5wtUy3vBGDpvPLhrKR4/CGRLpu5opH2bvYgkSk+oclvWbhUrCa9OEbrHHqxna4jZppINGSP2LjVA4k3KJheSJauSHTvbWbVWaaKviuxJBmCaPncumcBefxoy4oDQdNC+RVSzUg+3prv83F5wCIl/t7fihrzTupyfVs7YzpGEStPdO+3mgRG6bkQZKE7g56fNlzpzon9PLR1uluBco44+LMn2q5Y9LqXwrX2+hikF79FXALPZbE4RDmX5ZHttjfNSbQXIlFTAlvTKlXdPpszQl9zfXFljU1ZwTzdQYHAJS6xf2pKSxCFrLJgOJascFyI1EVClco/90U/ZscGYK4cQtBY8nMHFlnsI2Nl4a6PDmjNR4H8XC7WH74oBFhB9IxXqgsQYpd8eMNT7cBHaTkI0firW+9ZnMZn3kGUidjRkSOM1POSKir0jiV6uXn5LMjT91dg2ZcHvtALaGVqEBckalk0d8bBE13NbDmK7NPQ/PmiVQmcndkWA9q5BB90rvJ5Ox07kdyrsWH8r3nsteJgl7wlSFI=
- secure: IlbH9DIsdwlDiyvEA+desO6gYn/jxyTo78xJKuAJViJOIvgUFS7EGfuCFDIhcCaM+d8OwLjKC/9woJOV29tK3OgoItgFVNyt9ENC4vFdZSrzpo48kBIQgbA/amH1NTbNa/VEaPz38BiKqj0ZJDZ4LWfT2gbR1h0wGK5172q7pnfn9En9yAZ+UefIs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3af+5EsgNjrL3ftFZ2jsHJHHyp3yMIuond6+mz8mgPoFKk+mzWmY7Ume3occgw2iGRJl73jHw/TTWtM7UPrHscHSkl43QlOwqVbQ7obzi3vxb0tN1tgZI="
- secure: "lRc65jB7/bw8yrCPd5I3D8bKfr+EThfBDrLX/yEXvr3uvQZwfmWVoO89nYYQurvEko91+Fz7hVFAFYepvfcBX6CrDP/Th1R+Avh4kFwm/oNlrwqpFL880WArb8eOKMuHe/bxcjCOuytKtqYecYml5HmhxFhBmn6y5THfczA0gZ07WdaIyz99aa71E9E7c425YNr85rzScHNoMjfSSEd/F2TbANi13Cv+NHHGIav54wxkyE8caoQlZvI0aNN85qn8ZFkHiGQ7OSK2birO+NUDuB7F+zimm3isEQQY7e62toKLcFX3duSjuBnXkye0Gx9Vrr7gg7avOQIw5HGL0PS5ax5bvWp2i2qrRTuLBWQI3P+t/EFR/IEaTU98CwsSLVTB0MNsr8NtTdEtlKs4E1jsEEexLG3B8ejrrQpHNd+ls5dVtK74Xu/KpuRJU28X4jU5/7ajnZPB0tX4wLMbjD95V+yxRpvkzEn+JbbuthtIEqtTbAdwOhMg5Lli55W9nBDtIY0vaJw5qVi33ja8L6VCwnw+Za/2Xyb2UIXh4WZiXwctqGNIjE/jbr0RAsYNPGI8Pzc2rL+CJEF3dLr39DJkErD4CB2ng85KYZdfGR1sQ1DOisH0YwKvpkg7j8z3Jl9ietxRrOPMb7jtQdxTjlljcVfbNROSTlbae0Pr9RA7uIM="
15 changes: 8 additions & 7 deletions tests/test_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,18 @@ def test_default_settings():
def test_connection_token():
gpc.token = True
gpc.token = gpc.retrieve_token(token_url)
gpc.token_url = token_url
success, error = gpc.connect_to_googleplay_api()
assert error is None
assert success == True

#def test_connection_credentials():
# gpc.token = False
# gpc.config['gmail_address'] = os.environ['GMAIL_ADDR']
# gpc.config['gmail_password'] = os.environ['GMAIL_PWD']
# success, error = gpc.connect_to_googleplay_api()
# assert error is None
# assert success == True
def test_connection_credentials():
gpc.token = False
gpc.config['gmail_address'] = os.environ['GMAIL_ADDR']
gpc.config['gmail_password'] = os.environ['GMAIL_PWD']
success, error = gpc.connect_to_googleplay_api()
assert error is None
assert success == True

def test_download_duckduckgo():
gpc.progress_bar = True
Expand Down

0 comments on commit 8f912e4

Please sign in to comment.