import keble_helpers.typings as typings
from keble_helpers.typings.id import ObjectId
from keble_helpers.typings.standard_number import StdMoneyAmount
from keble_helpers.typings.typing import (
    AnyMarketplace,
    CommerceEntityType,
    Money,
    UnspecifiedMarketplace,
)


def test_typings_package_exports_standard_number_and_typing():
    assert typings.StdMoneyAmount is StdMoneyAmount
    assert typings.Money is Money
    assert typings.AnyMarketplace is AnyMarketplace
    assert typings.CommerceEntityType is CommerceEntityType
    assert typings.UnspecifiedMarketplace is UnspecifiedMarketplace
    assert "StdMoneyAmount" in typings.__all__
    assert "Money" in typings.__all__
    assert "AnyMarketplace" in typings.__all__
    assert "CommerceEntityType" in typings.__all__
    assert "UnspecifiedMarketplace" in typings.__all__


def test_typings_package_exports_id():
    assert typings.ObjectId is ObjectId
    assert "ObjectId" in typings.__all__
