Skip to content

Commit cec9723

Browse files
authored
Merge pull request #35 from google/ericpts/pr
Fix unit tests to run on github.
2 parents 914a873 + ee2b54e commit cec9723

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test_agent.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
import os
1516
import unittest
1617
from unittest.mock import MagicMock, patch
1718
from google.genai import types
@@ -20,6 +21,7 @@
2021

2122
class TestBrowserAgent(unittest.TestCase):
2223
def setUp(self):
24+
os.environ["GEMINI_API_KEY"] = "test_api_key"
2325
self.mock_browser_computer = MagicMock()
2426
self.mock_browser_computer.screen_size.return_value = (1000, 1000)
2527
self.agent = BrowserAgent(

0 commit comments

Comments
 (0)