From 8b4f60114d7fd1faeba1a712269168508d4750d2 Mon Sep 17 00:00:00 2001 From: Ammar Askar Date: Sat, 15 Feb 2020 16:27:25 -0800 Subject: [PATCH] Remove old github environment values --- sphinx_action/action.py | 4 +--- tests/test_action.py | 14 ++------------ 2 files changed, 3 insertions(+), 15 deletions(-) diff --git a/sphinx_action/action.py b/sphinx_action/action.py index b5fa0d8..5f172e6 100644 --- a/sphinx_action/action.py +++ b/sphinx_action/action.py @@ -7,9 +7,7 @@ from sphinx_action import status_check -GithubEnvironment = collections.namedtuple( - "GithubEnvironment", ["sha", "repo", "token", "build_command"] -) +GithubEnvironment = collections.namedtuple("GithubEnvironment", ["build_command"]) def extract_line_information(line_information): diff --git a/tests/test_action.py b/tests/test_action.py index 8343da2..3f7504b 100644 --- a/tests/test_action.py +++ b/tests/test_action.py @@ -112,12 +112,7 @@ def test_build_docs_with_different_makefile(self): def test_build_all_docs_success(self): action.build_all_docs( - action.GithubEnvironment( - sha="sha1hash", - repo="ammaraskar/sphinx-action", - token="SecretToken1", - build_command="make html", - ), + action.GithubEnvironment(build_command="make html",), [ os.path.join(TEST_PROJECTS_DIR, "no_errors"), os.path.join(TEST_PROJECTS_DIR, "warnings"), @@ -127,12 +122,7 @@ def test_build_all_docs_success(self): def test_build_all_docs_some_success(self): with self.assertRaisesRegex(RuntimeError, "Build failed"): action.build_all_docs( - action.GithubEnvironment( - sha="sha1hash", - repo="ammaraskar/sphinx-action", - token="SecretToken1", - build_command="make html", - ), + action.GithubEnvironment(build_command="make html",), [ os.path.join(TEST_PROJECTS_DIR, "no_errors"), os.path.join(TEST_PROJECTS_DIR, "warnings_and_errors"),