Skip to content

Commit

Permalink
removed private keys to test azure-pipelines secret environment varia…
Browse files Browse the repository at this point in the history
…bles
  • Loading branch information
Álvaro Bartolomé del Canto committed Aug 16, 2019
1 parent 75c51ca commit 0fa5861
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[![PyPi Version](https://img.shields.io/pypi/v/twipper.svg)](https://pypi.org/project/twipper/)
[![Package Status](https://img.shields.io/pypi/status/twipper.svg)](https://pypi.org/project/twipper/)
[![Build Status](https://dev.azure.com/alvarob96/alvarob96/_apis/build/status/alvarob96.twipper?branchName=master)](https://dev.azure.com/alvarob96/alvarob96/_build/latest?definitionId=1&branchName=master)
[![Documentation Status](https://readthedocs.org/projects/twipper/badge/?version=latest)](https://twipper.readthedocs.io/en/latest/?badge=latest)
[![Documentation Status](https://twipper.readthedocs.io/)](https://twipper.readthedocs.io/en/latest/?badge=latest)
[![Downloads](https://img.shields.io/pypi/dm/twipper.svg?style=flat)](https://pypi.python.org/pypi/twipper)

<p align="center">
Expand Down
11 changes: 7 additions & 4 deletions tests/test_private.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,18 @@
__version__ = '0.1'

import pytest
import os

from twipper.credentials import Twipper


def test_credentials():
credentials = Twipper(consumer_key='4mfeYj9SH1PXsff5HgZ5bTOzW',
consumer_secret='aiEfkE5tYCKcKEg42OcHbNgVvA2uikwwpRuBYwl5VmGSAm7N7e',
access_token='254490342-xIGPeyGYLDyD1uFIVgybDsd9ImUPaz467kowIoem',
access_token_secret='JrEuYnm1s44JR46AQDdoJagee3Uw9Ip0jxlp7z3XFcPDg')
credentials = Twipper(consumer_key=os.environ['consumer_key'],
consumer_secret=os.environ['consumer_secret'],
access_token=os.environ['access_token'],
access_token_secret=os.environ['access_token_secret'])

print(os.environ['consumer_key'], os.environ['access_token'])

credentials.plan = 'fullarchive'
print(credentials.plan)
Expand Down

0 comments on commit 0fa5861

Please sign in to comment.