Repository: great-expectations/great_expectations

Issue:
Use cleaner solution for non-truncating division in python 2
Prefer `from __future__ import division` to `1.*x/y`


Discussion:
Done inline during improve_partitions push.

Resolving patch:
diff --git a/integration/code/golden_path.py b/integration/code/golden_path.py
--- a/integration/code/golden_path.py
+++ b/integration/code/golden_path.py
@@ -8,11 +8,8 @@
         data_connector_name="monthly",
         data_asset_name="yellow",
         data_connector_query={
-            "batch_filter_parameters": {
-                "year": "2019",
-                "month": "02"
-            }
-        }
+            "batch_filter_parameters": {"year": "2019", "month": "02"}
+        },
     )
 )
 
diff --git a/integration/code/path_filesystem_runtime_data_connector.py b/integration/code/path_filesystem_runtime_data_connector.py
new file mode 100644
--- /dev/null
+++ b/integration/code/path_filesystem_runtime_data_connector.py
@@ -0,0 +1,41 @@
+import great_expectations as ge
+from great_expectations.cli.datasource import sanitize_yaml_and_save_datasource
+
+# ge.DataContext.create(project_root_dir="../fixtures/runtime_data_taxi_monthly", )
+# ge.DataContext.set_ge_config_version(3, "../fixtures/runtime_data_taxi_monthly")
+
+context = ge.get_context()
+
+config = f"""
+    name: taxi_datasource_with_runtime_data_connector
+    class_name: Datasource
+    module_name: great_expectations.datasource
+    execution_engine:
+      module_name: great_expectations.execution_engine
+      class_name: PandasExecutionEngine
+    data_connectors:
+        default_runtime_data_connector_name:
+            class_name: RuntimeDataConnector
+            batch_identifiers:
+                - default_identifier_name
+"""
+
+
+sanitize_yaml_and_save_datasource(context, config, overwrite_existing=True)
+
+batch_request = ge.core.batch.RuntimeBatchRequest(
+    datasource_name="taxi_datasource_with_runtime_data_connector",
+    data_connector_name="default_runtime_data_connector_name",
+    data_asset_name="default_name",  # this can be anything that identifies this data_asset for you
+    runtime_parameters={
+        "path": "./test_data/reports/yellow_tripdata_sample_2019-01.csv"
+    },
+    batch_identifiers={"default_identifier_name": "something_something"},
+)
+
+# getting Batch
+
+batch = context.get_batch(batch_request=batch_request)
+
+# this may not be the right test at the end.
+print(batch.__str__())


Test patch:
diff --git a/tests/integration/test_script_runner.py b/tests/integration/test_script_runner.py
--- a/tests/integration/test_script_runner.py
+++ b/tests/integration/test_script_runner.py
@@ -16,6 +16,13 @@
         "data_dir": "tests/test_sets/taxi_yellow_trip_data_samples",
         "user_flow_script": "tests/integration/fixtures/yellow_trip_data_pandas_fixture/two_batch_requests_two_validators.py",
     },
+    {
+        "name": "pandas_filesystem_runtime_golden_path",
+        "base_dir": file_relative_path(__file__, "../../"),
+        "data_context_dir": "integration/fixtures/runtime_data_taxi_monthly/great_expectations",
+        "data_dir": "integration/fixtures/test_data",
+        "user_flow_script": "integration/code/path_filesystem_runtime_data_connector.py",
+    },
 ]