2018-06-23 11:53:56 +00:00
|
|
|
import pytest
|
|
|
|
|
|
|
|
|
2018-08-17 09:57:42 +00:00
|
|
|
def test_pandas(selenium, request):
|
2018-08-20 15:09:23 +00:00
|
|
|
if selenium.browser == 'chrome':
|
2018-08-17 09:57:42 +00:00
|
|
|
request.applymarker(pytest.mark.xfail(
|
|
|
|
run=False, reason='chrome not supported'))
|
2018-05-04 17:09:32 +00:00
|
|
|
selenium.load_package("pandas")
|
2018-07-18 13:26:18 +00:00
|
|
|
assert len(selenium.run("import pandas\ndir(pandas)")) == 140
|
2018-04-24 23:29:54 +00:00
|
|
|
|
|
|
|
|
2018-08-17 09:57:42 +00:00
|
|
|
def test_extra_import(selenium, request):
|
2018-08-20 20:44:08 +00:00
|
|
|
if selenium.browser == 'chrome':
|
2018-08-17 09:57:42 +00:00
|
|
|
request.applymarker(pytest.mark.xfail(
|
|
|
|
run=False, reason='chrome not supported'))
|
|
|
|
|
2018-05-23 11:23:49 +00:00
|
|
|
selenium.load_package("pandas")
|
2018-04-24 23:29:54 +00:00
|
|
|
selenium.run("from pandas import Series, DataFrame, Panel")
|
2018-09-12 14:14:51 +00:00
|
|
|
|
|
|
|
|
|
|
|
def test_load_largish_file(selenium_standalone, request):
|
|
|
|
selenium = selenium_standalone
|
|
|
|
|
|
|
|
if selenium.browser == 'chrome':
|
|
|
|
request.applymarker(pytest.mark.xfail(
|
|
|
|
run=False, reason='chrome not supported'))
|
|
|
|
|
|
|
|
selenium.load_package("pandas")
|
|
|
|
selenium.load_package("matplotlib")
|
|
|
|
|
|
|
|
selenium.run("""
|
|
|
|
import pyodide
|
|
|
|
import matplotlib.pyplot as plt
|
|
|
|
import pandas as pd
|
|
|
|
|
|
|
|
pd.read_json(pyodide.open_url('test/largish.json.cgi'))
|
|
|
|
""")
|