Skip to content

Commit

Permalink
refactor: remove unnecessary comments
Browse files Browse the repository at this point in the history
  • Loading branch information
TGoddessana committed Feb 11, 2024
1 parent 5c3fa5e commit d1d994d
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,40 +6,32 @@


@pytest.fixture
def app():
def app() -> Flask:
app = Flask(__name__)
app.config["TESTING"] = True
return app


@pytest.fixture
def runner(app):
def runner(app: Flask) -> CliRunner:
return CliRunner()


def test_ipython_shell(runner, app):
def test_ipython_shell(runner: CliRunner, app: Flask) -> None:
with app.app_context():
result = runner.invoke(shell, ["--shelltype", "ipython"])
assert result.exit_code == 0
assert "IPython" in result.output


# def test_bpython_shell(runner, app):
# with app.app_context():
# result = runner.invoke(shell, ["--shelltype", "bpython"])
# assert result.output == ""
# assert result.exit_code == 0
# assert "BPython" in result.output


def test_pypython_shell(runner, app):
def test_ptpython_shell(runner: CliRunner, app: Flask) -> None:
with app.app_context():
result = runner.invoke(shell, ["--shelltype", "ptpython"])
assert result.exit_code == 0
assert "PTPython" in result.output


def test_python_shell(runner, app):
def test_python_shell(runner: CliRunner, app: Flask) -> None:
with app.app_context():
result = runner.invoke(shell, ["--shelltype", "python"])
assert result.exit_code == 0
Expand Down

0 comments on commit d1d994d

Please sign in to comment.