File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 2121# Whether the magics has already been reigstered by some other packages.
2222is_registered = False
2323
24+
2425def load_ipython_extension (ipython ):
2526 """Called by IPython when this module is loaded as an IPython extension."""
2627 # Import here to avoid circular imports.
Original file line number Diff line number Diff line change @@ -2142,13 +2142,12 @@ def test_bigquery_magic_bigframes_with_dry_run__should_fail():
21422142
21432143@pytest .mark .usefixtures ("ipython_interactive" )
21442144def test_test_bigquery_magic__extension_not_loaded__is_registered_set_to_false ():
2145-
21462145 assert bigquery_magics .is_registered is False
21472146
21482147
21492148@pytest .mark .usefixtures ("ipython_interactive" )
21502149def test_test_bigquery_magic__extension_loaded__is_registered_set_to_true ():
21512150 ip = IPython .get_ipython ()
2152- ip .extension_manager .load_extension ("bigquery_magics" )
2151+ ip .extension_manager .load_extension ("bigquery_magics" )
21532152
21542153 assert bigquery_magics .is_registered is True
You can’t perform that action at this time.
0 commit comments