Skip to content

Commit 2cd05c2

Browse files
author
Vikram Subbiah
committed
Add Filesystem tests
* Update assertEquals deprecated method to assertEqual * Update pytest collection to match all tests with prefix `test_`
1 parent 139665a commit 2cd05c2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/python-package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@ jobs:
3232
poetry install
3333
- name: Test with pytest
3434
run: |
35-
poetry run pytest -s -x
35+
poetry run pytest -s -x -k test_
3636
env:
3737
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}

tests/core/computer/files/test_files.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def test_edit_original_text_not_in_filedata(self):
4545

4646
# Assert
4747
mock_open.assert_any_call("example/filepath/file", "r")
48-
self.assertEquals(
48+
self.assertEqual(
4949
str(context_manager.exception),
5050
"Original text not found. Did you mean one of these? foobar",
5151
)

0 commit comments

Comments
 (0)