"Fossies" - the Fresh Open Source Software Archive

Member "buku-4.3/tests/test_setup.py" (31 Jan 2020, 377 Bytes) of package /linux/privat/buku-4.3.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Python source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 def test_bukuserver_requirement(monkeypatch):
    2     def m_setup(**kwargs):
    3         return None
    4     import setuptools
    5     monkeypatch.setattr(setuptools, 'setup', m_setup)
    6     import setup
    7     setup_l = setup.server_require
    8     with open('bukuserver/requirements.txt') as f:
    9         bs_l = [x for x in f.read().splitlines() if not x.startswith('buku')]
   10     assert bs_l == setup_l