diff --git a/tests/python3_spread/__snapshots__/jsfmt.spec.js.snap b/tests/python3_spread/__snapshots__/jsfmt.spec.js.snap new file mode 100644 index 0000000..525bbbf --- /dev/null +++ b/tests/python3_spread/__snapshots__/jsfmt.spec.js.snap @@ -0,0 +1,40 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`args_mixed.py 1`] = ` +context = { + **modeladmin.admin_site.each_context(request), + 'title': title, + 'objects_name': str(objects_name), + 'deletable_objects': [deletable_objects], + 'model_count': dict(model_count).items(), + 'queryset': queryset, + 'perms_lacking': perms_needed, + 'protected': protected, + 'opts': opts, + 'action_checkbox_name': helpers.ACTION_CHECKBOX_NAME, + 'media': modeladmin.media +} + +dict(**{'x': 1}, y=2, **{'z': 3}) + +combination = {**first_dictionary, "x": 1, "y": 2} +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +context = { + **modeladmin.admin_site.each_context(request), + "title": title, + "objects_name": str(objects_name), + "deletable_objects": [deletable_objects], + "model_count": dict(model_count).items(), + "queryset": queryset, + "perms_lacking": perms_needed, + "protected": protected, + "opts": opts, + "action_checkbox_name": helpers.ACTION_CHECKBOX_NAME, + "media": modeladmin.media +} + +dict(**{"x": 1}, y=2, **{"z": 3}) + +combination = {**first_dictionary, "x": 1, "y": 2} + +`; diff --git a/tests/python3_spread/args_mixed.py b/tests/python3_spread/args_mixed.py new file mode 100644 index 0000000..e121c30 --- /dev/null +++ b/tests/python3_spread/args_mixed.py @@ -0,0 +1,17 @@ +context = { + **modeladmin.admin_site.each_context(request), + 'title': title, + 'objects_name': str(objects_name), + 'deletable_objects': [deletable_objects], + 'model_count': dict(model_count).items(), + 'queryset': queryset, + 'perms_lacking': perms_needed, + 'protected': protected, + 'opts': opts, + 'action_checkbox_name': helpers.ACTION_CHECKBOX_NAME, + 'media': modeladmin.media +} + +dict(**{'x': 1}, y=2, **{'z': 3}) + +combination = {**first_dictionary, "x": 1, "y": 2} diff --git a/tests/python3_spread/jsfmt.spec.js b/tests/python3_spread/jsfmt.spec.js new file mode 100644 index 0000000..a535402 --- /dev/null +++ b/tests/python3_spread/jsfmt.spec.js @@ -0,0 +1,3 @@ +run_spec(__dirname, ["python"], { + pythonVersion: "3" +});