Skip to content

Commit

Permalink
Remove Heroku
Browse files Browse the repository at this point in the history
Not used in production
  • Loading branch information
Hal Wine committed Oct 1, 2020
1 parent 2d099f1 commit 39f38db
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 305 deletions.
18 changes: 2 additions & 16 deletions conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
from aws.client import BotocoreClient
from gcp.client import GCPClient
from gsuite.client import GsuiteClient
from heroku.client import HerokuAdminClient
from github.client import GitHubClient

import custom_config
Expand All @@ -19,7 +18,6 @@
botocore_client = None
gcp_client = None
gsuite_client = None
heroku_client = None
github_client = None

# globals in conftest.py are hard to import from several levels down, so provide access function
Expand Down Expand Up @@ -79,7 +77,6 @@ def pytest_configure(config):
global botocore_client
global gcp_client
global gsuite_client
global heroku_client
global github_client

# monkeypatch cache.set to serialize datetime.datetime's
Expand All @@ -105,15 +102,6 @@ def pytest_configure(config):
offline=config.getoption("--offline"),
)

heroku_client = HerokuAdminClient(
organization=organization,
# cache=config.cache,
cache=None,
debug_calls=config.getoption("--debug-calls"),
debug_cache=config.getoption("--debug-cache"),
offline=config.getoption("--offline"),
)

github_client = GitHubClient(
debug_calls=config.getoption("--debug-calls"),
offline=config.getoption("--offline"),
Expand All @@ -139,8 +127,7 @@ def aws_config(pytestconfig):


def pytest_runtest_setup(item):
"""
"""
""""""
if not isinstance(item, DoctestItem):
item.config.custom_config.add_markers(item)

Expand Down Expand Up @@ -252,8 +239,7 @@ def get_outcome_and_reason(report, markers, call):


def clean_docstring(docstr):
"""
Transforms a docstring into a properly formatted single line string.
"""Transforms a docstring into a properly formatted single line string.
>>> clean_docstring("\\nfoo\\n bar\\n")
'foo bar'
Expand Down
Empty file removed heroku/__init__.py
Empty file.
192 changes: 0 additions & 192 deletions heroku/client.py

This file was deleted.

29 changes: 0 additions & 29 deletions heroku/resources.py

This file was deleted.

67 changes: 0 additions & 67 deletions heroku/test_heroku_2fa.py

This file was deleted.

1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ pytest-json==0.4.0
pytest-metadata==1.8.0
pytest==3.10.1
python-dateutil==2.7.5
git+https://github.com/hwine/python-herokuadmintools.git#egg=herokuadmintools
pre-commit==2.5.1
ruamel.yaml==0.15.85
wheel==0.33.1
Expand Down

0 comments on commit 39f38db

Please sign in to comment.