From 9aaf243ad397f389426cade938d72b43603e26f5 Mon Sep 17 00:00:00 2001 From: Matt Davis Date: Tue, 2 Jun 2015 16:17:58 -0700 Subject: [PATCH] change tables -> temporary tables to avoid conflict with tables package --- orca/orca.py | 2 +- orca/tests/test_orca.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/orca/orca.py b/orca/orca.py index 38ca7fc..1890f6c 100644 --- a/orca/orca.py +++ b/orca/orca.py @@ -1912,7 +1912,7 @@ def injectables(**kwargs): @contextmanager -def tables(**kwargs): +def temporary_tables(**kwargs): """ Temporarily set DataFrames as registered tables. diff --git a/orca/tests/test_orca.py b/orca/tests/test_orca.py index d290452..2c5e93a 100644 --- a/orca/tests/test_orca.py +++ b/orca/tests/test_orca.py @@ -1024,13 +1024,13 @@ def test_injectables_cm(): } -def test_tables_cm(): +def test_temporary_tables_cm(): orca.add_table('a', pd.DataFrame()) - with orca.tables(): + with orca.temporary_tables(): assert sorted(orca._TABLES.keys()) == ['a'] - with orca.tables(a=pd.DataFrame(), b=pd.DataFrame()): + with orca.temporary_tables(a=pd.DataFrame(), b=pd.DataFrame()): assert sorted(orca._TABLES.keys()) == ['a', 'b'] assert sorted(orca._TABLES.keys()) == ['a']