Skip to content

Commit 0599746

Browse files
committed
updates to magics handling: ensures interactive shell is present
1 parent a9ecf14 commit 0599746

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -831,6 +831,7 @@ def test_bigquery_magic_w_max_results_query_job_results_fails(monkeypatch):
831831
assert close_transports.called
832832

833833

834+
@pytest.mark.usefixtures("ipython_interactive")
834835
def test_bigquery_magic_w_table_id_invalid(monkeypatch):
835836
ip = IPython.get_ipython()
836837
monkeypatch.setattr(bigquery, "bigquery_magics", None)
@@ -861,6 +862,7 @@ def test_bigquery_magic_w_table_id_invalid(monkeypatch):
861862
assert "Traceback (most recent call last)" not in output
862863

863864

865+
@pytest.mark.usefixtures("ipython_interactive")
864866
def test_bigquery_magic_w_missing_query(monkeypatch):
865867
ip = IPython.get_ipython()
866868
monkeypatch.setattr(bigquery, "bigquery_magics", None)

0 commit comments

Comments
 (0)