From c657624e39625a62fd52732e3d33ac8ec9dbb0e8 Mon Sep 17 00:00:00 2001 From: Jon Wayne Parrott Date: Wed, 5 Apr 2017 15:21:33 -0700 Subject: [PATCH] Remove resource [(#890)](https://github.com/GoogleCloudPlatform/python-docs-samples/issues/890) * Remove resource fixture * Remove remote resource --- samples/snippets/load_data_from_file_test.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/samples/snippets/load_data_from_file_test.py b/samples/snippets/load_data_from_file_test.py index 434bbd1d8..960fe62c9 100644 --- a/samples/snippets/load_data_from_file_test.py +++ b/samples/snippets/load_data_from_file_test.py @@ -11,14 +11,17 @@ # See the License for the specific language governing permissions and # limitations under the License. +import os + import load_data_from_file +RESOURCES = os.path.join(os.path.dirname(__file__), 'resources') DATASET_ID = 'test_dataset' TABLE_ID = 'test_import_table' -def test_load_table(resource, capsys): - data_path = resource('data.csv') +def test_load_table(capsys): + data_path = os.path.join(RESOURCES, 'data.csv') load_data_from_file.load_data_from_file( DATASET_ID,