File: test_setup.py

package info (click to toggle)
buku 4.7%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,076 kB
  • sloc: python: 6,305; sh: 92; makefile: 11
file content (10 lines) | stat: -rw-r--r-- 420 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
def test_bukuserver_requirement(monkeypatch):
    def m_setup(**kwargs):
        return None
    import setuptools
    monkeypatch.setattr(setuptools, 'setup', m_setup)
    import setup
    setup_l = setup.server_require
    with open('bukuserver/requirements.txt', encoding="utf8", errors="surrogateescape") as f:
        bs_l = [x for x in f.read().splitlines() if not x.startswith('buku')]
    assert bs_l == setup_l