Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
elliottower committed Nov 21, 2023
1 parent 1f0b534 commit 13456f6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/environments-test-azure-openai.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ jobs:
pip install -e '.[all]'
- name: Umshini Environments Test
run: |
xvfb-run -s "-screen 0 1024x768x24" pytest -v -n auto tests/test_umshini_environments.py
xvfb-run -s "-screen 0 1024x768x24" pytest -v -n auto tests/unit/test_umshini_environments.py
2 changes: 1 addition & 1 deletion .github/workflows/environments-test-openai.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
pip install -e '.[all]'
- name: Umshini Environments Test
run: |
xvfb-run -s "-screen 0 1024x768x24" pytest -v -n auto tests/test_umshini_environments.py
xvfb-run -s "-screen 0 1024x768x24" pytest -v -n auto tests/unit/test_umshini_environments.py
- name: Regular Environments Test
run: |
xvfb-run -s "-screen 0 1024x768x24" pytest -v -n auto tests
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,4 @@ DEP002 = [ "pytest", "pytest-cov", "deptry", "pytest-xdist", "chess", "rlcard",

[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = [ "--ignore=tests/test_umshini_environments.py", ]
addopts = [ "--ignore=tests/unit/test_umshini_environments.py", ]
6 changes: 3 additions & 3 deletions tests/unit/test_umshini_environments.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

class TestUmshiniEnvironments(TestCase):
@unittest.skipIf(
not os.getenv("OPENAI_API_KEY") or os.getenv("AZURE_OPENAI_API_KEY"),
not (os.getenv("OPENAI_API_KEY") or os.getenv("AZURE_OPENAI_API_KEY")),
"OPENAI_API_KEY or AZURE_OPENAI_API_KEY must be set to run this test.",
)
def test_debate(self):
Expand Down Expand Up @@ -39,7 +39,7 @@ def test_debate(self):
}, "Scores should be 0-0, as both agents did not participate in the debate"

@unittest.skipIf(
not os.getenv("OPENAI_API_KEY") or os.getenv("AZURE_OPENAI_API_KEY"),
not (os.getenv("OPENAI_API_KEY") or os.getenv("AZURE_OPENAI_API_KEY")),
"OPENAI_API_KEY or AZURE_OPENAI_API_KEY must be set to run this test.",
)
def test_content_moderation(self):
Expand Down Expand Up @@ -74,7 +74,7 @@ def test_content_moderation(self):
}, "Total rewards should be 2 for Agent1, -1 for Agent2. Successful Agent1 attack gives {+1, -1}, then unsuccessful attack from Agent2 gives {+1, 0}"

@unittest.skipIf(
not os.getenv("OPENAI_API_KEY") or os.getenv("AZURE_OPENAI_API_KEY"),
not (os.getenv("OPENAI_API_KEY") or os.getenv("AZURE_OPENAI_API_KEY")),
"OPENAI_API_KEY or AZURE_OPENAI_API_KEY must be set to run this test.",
)
def test_deception(self):
Expand Down

0 comments on commit 13456f6

Please sign in to comment.