Ejemplo n.º 1
0
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
Ejemplo n.º 3
0
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
Ejemplo n.º 4
0
    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
Ejemplo n.º 5
0
def test_license(capsys) -> None:
    b.license()
    out, err = capsys.readouterr()
    assert out == _LICENSE
Ejemplo n.º 6
0
 def test_license(self):
     import bokeh
     bokeh.license()