Bazel-ify most of the Python scripts. (#229)

This commit is contained in:
Jon Meow
2020-12-28 16:37:55 -08:00
committed by GitHub
parent 4290e1845b
commit d76f8a1eff
14 changed files with 133 additions and 43 deletions
+6 -1
View File
@@ -10,10 +10,15 @@ import os
import unittest
from unittest import mock
from github_tools import pr_comments
from carbon.github_tools import github_helpers
from carbon.github_tools import pr_comments
class TestPRComments(unittest.TestCase):
def setUp(self):
# Stub out the access token.
os.environ[github_helpers._ENV_TOKEN] = "unused"
def test_format_comment_short(self):
created_at = "2001-02-03T04:05:06Z"
self.assertEqual(