Skip to content

Commit

Permalink
test: change testcases to assume APPMAP_RECORD_REQUESTS=false
Browse files Browse the repository at this point in the history
  • Loading branch information
symwell committed Oct 6, 2022
1 parent 0787264 commit 7cfc095
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion appmap/test/test_django.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ def test_sql_capture(events):


@pytest.mark.appmap_enabled
def test_framework_metadata(client, events): # pylint: disable=unused-argument
def test_framework_metadata(client, events, monkeypatch): # pylint: disable=unused-argument
monkeypatch.setenv("APPMAP_RECORD_REQUESTS", "false")
client.get("/")
assert Metadata()["frameworks"] == [
{"name": "Django", "version": django.get_version()}
Expand Down
3 changes: 2 additions & 1 deletion appmap/test/test_flask.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ def flask_app(data_dir, monkeypatch):


@pytest.mark.appmap_enabled
def test_framework_metadata(client, events): # pylint: disable=unused-argument
def test_framework_metadata(client, events, monkeypatch): # pylint: disable=unused-argument
monkeypatch.setenv("APPMAP_RECORD_REQUESTS", "false")
client.get("/")
assert Metadata()["frameworks"] == [{"name": "flask", "version": flask.__version__}]

Expand Down

0 comments on commit 7cfc095

Please sign in to comment.