def test_license(capsys): # This sucks, but when testing from source, there's no guarantee that # setup.py has been called to install the license file otherwise. copy(join(dirname(__file__), '..', '..', 'LICENSE.txt'), join(dirname(__file__), '..')) b.license() out, err = capsys.readouterr() assert out == _LICENSE
def test_license(self): import bokeh try: bokeh.license() except Exception as e: print( "If LICENSE.txt does not exist in bokeh/ subdir, one way to fix this may be to run 'python setup.py develop'", file=sys.stderr) raise e
def test_license(capsys): # This sucks, but when testing from source, there's no guarantee that # setup.py has been called to install the license file otherwise. copy( join(dirname(__file__), '..', '..', 'LICENSE.txt'), join(dirname(__file__), '..') ) b.license() out, err = capsys.readouterr() assert out == _LICENSE
def test_license(self): import bokeh try: bokeh.license() except Exception as e: print( "If LICENSE.txt does not exist in bokeh/ subdir, one way to fix this may be to run 'python setup.py develop'", file=sys.stderr, ) raise e
def test_license(capsys) -> None: b.license() out, err = capsys.readouterr() assert out == _LICENSE
def test_license(self): import bokeh bokeh.license()