Skip to content

Commit

Permalink
change tables -> temporary tables to avoid conflict with tables package
Browse files Browse the repository at this point in the history
  • Loading branch information
jiffyclub committed Jun 2, 2015
1 parent 65770c3 commit 9aaf243
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion orca/orca.py
Expand Up @@ -1912,7 +1912,7 @@ def injectables(**kwargs):


@contextmanager
def tables(**kwargs):
def temporary_tables(**kwargs):
"""
Temporarily set DataFrames as registered tables.
Expand Down
6 changes: 3 additions & 3 deletions orca/tests/test_orca.py
Expand Up @@ -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']
Expand Down

0 comments on commit 9aaf243

Please sign in to comment.