File: __init__.py

package info (click to toggle)
python-b2sdk 2.10.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,228 kB
  • sloc: python: 32,094; sh: 13; makefile: 8
file content (47 lines) | stat: -rw-r--r-- 1,316 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
######################################################################
#
# File: b2sdk/v3/testing/__init__.py
#
# Copyright 2021 Backblaze Inc. All Rights Reserved.
#
# License https://www.backblaze.com/using_b2_code.html
#
######################################################################
from __future__ import annotations

# testing - it is not imported in v3.__init__ as it depends on pytest and other test dependencies.

from b2sdk._internal.testing.helpers.api import get_b2_auth_data, authorize, get_realm
from b2sdk._internal.testing.helpers.base import IntegrationTestBase
from b2sdk._internal.testing.helpers.buckets import (
    GENERAL_BUCKET_NAME_PREFIX,
    BUCKET_NAME_LENGTH,
    BUCKET_CREATED_AT_MILLIS,
    NODE_DESCRIPTION,
    RNG,
    RNG_COUNTER,
    RNG_SEED,
    get_bucket_name_prefix,
    random_token,
)
from b2sdk._internal.testing.helpers.bucket_manager import (
    ONE_HOUR_MILLIS,
    BUCKET_CLEANUP_PERIOD_MILLIS,
    BucketManager,
)
from b2sdk._internal.testing.fixtures.api import (
    set_http_debug,
    b2_auth_data,
    _b2_api,
    b2_api,
    realm,
)
from b2sdk._internal.testing.fixtures.buckets import (
    pytest_addoption,
    dont_cleanup_old_buckets,
    bucket_name_prefix,
    general_bucket_name_prefix,
    bucket_manager,
    bucket,
    b2_subfolder,
)