File: test_included_modules.py

package info (click to toggle)
python-b2sdk 2.8.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,020 kB
  • sloc: python: 30,902; sh: 13; makefile: 8
file content (20 lines) | stat: -rw-r--r-- 665 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
######################################################################
#
# File: test/unit/test_included_modules.py
#
# Copyright 2022 Backblaze Inc. All Rights Reserved.
#
# License https://www.backblaze.com/using_b2_code.html
#
######################################################################
from __future__ import annotations

import pathlib

from b2sdk._internal import requests
from b2sdk._internal.requests.included_source_meta import included_source_meta


def test_requests_notice_file():
    with (pathlib.Path(requests.__file__).parent / 'NOTICE').open('r') as notice_file:
        assert notice_file.read() == included_source_meta.files['NOTICE']