# Path: buckets/utils.py
# def validate_settings():
# def byte_to_base32_chr(byte):
# def byte_to_letter(byte):
# def random_id():
# def ensure_dirs(*args):
# ID_FIELD_LENGTH = 24


import os
import pytest
import shutil
from django.conf import settings
from buckets import utils


def test_validate_settings(settings):
    settings.AWS = None
    with pytest.raises(AssertionError) as e:
        utils.validate_settings()
    assert 'No AWS settings found' in str(e.value)

    settings.AWS = {
        'ACCESS_KEY': 'A',
        'SECRET_KEY': 'S',
    }
    with pytest.raises(AssertionError) as e:

# Path: buckets/utils.py
# def validate_settings():
# def byte_to_base32_chr(byte):
# def byte_to_letter(byte):
# def random_id():
# def ensure_dirs(*args):
# ID_FIELD_LENGTH = 24


# Path: tests/test_utils.py
import os
import pytest
import shutil
from django.conf import settings
from buckets import utils



def test_validate_settings(settings):
    settings.AWS = None
    with pytest.raises(AssertionError) as e:
        utils.validate_settings()
    assert 'No AWS settings found' in str(e.value)

    settings.AWS = {
        'ACCESS_KEY': 'A',
        'SECRET_KEY': 'S',
    }
    with pytest.raises(AssertionError) as e:

        utils.validate_settings()