diff --git a/CHANGELOG.md b/CHANGELOG.md index d37dbd4b..f806bf98 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## [1.18.1](https://github.com/getappmap/appmap-python/compare/v1.18.0...v1.18.1) (2023-11-05) + + +### Bug Fixes + +* move source_location property to metadata ([7ac2aa0](https://github.com/getappmap/appmap-python/commit/7ac2aa042ce89bff30dd0bd71ca3d6220d1c8ba4)) + # [1.18.0](https://github.com/getappmap/appmap-python/compare/v1.17.1...v1.18.0) (2023-11-04) diff --git a/_appmap/test/data/pytest/expected/pytest.appmap.json b/_appmap/test/data/pytest/expected/pytest.appmap.json index c03ebf37..5f047ad0 100644 --- a/_appmap/test/data/pytest/expected/pytest.appmap.json +++ b/_appmap/test/data/pytest/expected/pytest.appmap.json @@ -13,9 +13,7 @@ "name": "pytest", "type": "tests" }, - "recording": { - "source_location": "test_simple.py:5" - }, + "source_location": "test_simple.py:5", "name": "hello world", "feature": "Hello world", "test_status": "succeeded" diff --git a/_appmap/test/data/trial/expected/pytest.appmap.json b/_appmap/test/data/trial/expected/pytest.appmap.json index 71c2b220..f86e0b23 100644 --- a/_appmap/test/data/trial/expected/pytest.appmap.json +++ b/_appmap/test/data/trial/expected/pytest.appmap.json @@ -11,9 +11,9 @@ "feature_group": "Deferred", "recording": { "defined_class": "test.test_deferred.TestDeferred", - "method_id": "test_hello_world", - "source_location": "test/test_deferred.py:7" + "method_id": "test_hello_world" }, + "source_location": "test/test_deferred.py:7", "name": "Deferred hello world", "feature": "Hello world", "app": "deferred", diff --git a/_appmap/test/data/unittest/expected/pytest.appmap.json b/_appmap/test/data/unittest/expected/pytest.appmap.json index b389f4a9..972cf161 100644 --- a/_appmap/test/data/unittest/expected/pytest.appmap.json +++ b/_appmap/test/data/unittest/expected/pytest.appmap.json @@ -11,9 +11,9 @@ "feature_group": "Unit test test", "recording": { "defined_class": "simple.test_simple.UnitTestTest", - "method_id": "test_hello_world", - "source_location": "simple/test_simple.py:13" + "method_id": "test_hello_world" }, + "source_location": "simple/test_simple.py:13", "name": "Unit test test hello world", "feature": "Hello world", "app": "Simple", diff --git a/_appmap/test/data/unittest/expected/unittest.appmap.json b/_appmap/test/data/unittest/expected/unittest.appmap.json index 555a46b7..f3fa7526 100644 --- a/_appmap/test/data/unittest/expected/unittest.appmap.json +++ b/_appmap/test/data/unittest/expected/unittest.appmap.json @@ -11,9 +11,9 @@ "feature_group": "Unit test test", "recording": { "defined_class": "simple.test_simple.UnitTestTest", - "method_id": "test_hello_world", - "source_location": "simple/test_simple.py:14" + "method_id": "test_hello_world" }, + "source_location": "simple/test_simple.py:14", "name": "Unit test test hello world", "feature": "Hello world", "app": "Simple", diff --git a/_appmap/testing_framework.py b/_appmap/testing_framework.py index cb11a918..09a81f43 100644 --- a/_appmap/testing_framework.py +++ b/_appmap/testing_framework.py @@ -86,9 +86,7 @@ def metadata(self): "method_id": self.method_id, } if self.location: - ret.setdefault("recording", {}).update( - {"source_location": "%s:%d" % self.location[0:2]} - ) + ret.update({"source_location": "%s:%d" % self.location[0:2]}) ret.update({"name": self.scenario_name, "feature": self.feature}) return ret diff --git a/pyproject.toml b/pyproject.toml index 1e441699..d79a4618 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "appmap" -version = "1.18.0" +version = "1.18.1" description = "Create AppMap files by recording a Python application." readme = "README.md" authors = [