Skip to main content

Test equality of unordered collections in pytest

Project description

pytest-unordered

Build Status Coverage Status

Test equality of unordered collections in pytest.

Installation

pip install pytest-unordered

Usage

from pytest_unordered import unordered

def test_unordered():
    assert [3, 2, {1: ['b', 'a']}] == unordered({1: unordered('a', 'b')}, 2, 3)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytest-unordered-0.4.0.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

pytest_unordered-0.4.0-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file pytest-unordered-0.4.0.tar.gz.

File metadata

  • Download URL: pytest-unordered-0.4.0.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.8.0

File hashes

Hashes for pytest-unordered-0.4.0.tar.gz
Algorithm Hash digest
SHA256 268fd7f518138b4df033ca30e43fcd727bc3c72cff8c83a0befdbfd5a944394d
MD5 bec4851ab3627f4116a516f9be5a4958
BLAKE2b-256 3c8f2fce90133a93a3b7ced43a46d8de87e2c65e4e3035d294886a1246cd36c9

See more details on using hashes here.

File details

Details for the file pytest_unordered-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: pytest_unordered-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.8.0

File hashes

Hashes for pytest_unordered-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5afc66b38bf160c7bb8082649661656afffa2796251e5abbd7ac7009882783f1
MD5 50251d45432ff4079c70b9d09cf81f8d
BLAKE2b-256 46e71a0315e4ab03a725070038c302fb9f069f51710372e5199e998ffc52c846

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page