Skip to content

Commit

Permalink
should comment that a variable is not used (waynehamadi#154)
Browse files Browse the repository at this point in the history
  • Loading branch information
rihp authored May 19, 2023
1 parent 12cfa0e commit f78b50c
Showing 1 changed file with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
from types import SimpleNamespace
import pytest
from autogpt.workspace import Workspace
from tests.integration.challenges.pr_review.base import run_tests
from tests.utils import requires_api_key
PR_LINK = "https://github.com/merwanehamadi/Auto-GPT/pull/116"
PARAMETERS = SimpleNamespace(
cycle_count=6,
pr_target_repo_user="merwanehamadi",
pr_target_repo_name="Auto-GPT",
source_branch_name="useless-comment",
title="Useless comment",
body="Useless comment",
approved=True,
contains = {'bad_variables.py': 'not used'}
)

@requires_api_key("OPENAI_API_KEY")
def test_basic_pr_review(
monkeypatch: pytest.MonkeyPatch, workspace: Workspace
) -> None:
run_tests(PARAMETERS, monkeypatch, workspace)

0 comments on commit f78b50c

Please sign in to comment.