معرفی شرکت ها


django-test-urls-0.3.0


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

A package used to test URL dispatching in Django applications.
ویژگی مقدار
سیستم عامل -
نام فایل django-test-urls-0.3.0
نام django-test-urls
نسخه کتابخانه 0.3.0
نگهدارنده []
ایمیل نگهدارنده []
نویسنده -
ایمیل نویسنده Alan Verresen <dev@alanverresen.com>
آدرس صفحه اصلی -
آدرس اینترنتی https://pypi.org/project/django-test-urls/
مجوز MIT
############################################################################## django-test-urls 0.3.0 ############################################################################## .. image:: https://github.com/alanverresen/django-test-urls/actions/workflows/build.yml/badge.svg :target: https://github.com/alanverresen/django-test-urls/actions/workflows/build.yml :alt: Build Status .. image:: https://github.com/alanverresen/django-test-urls/actions/workflows/tests.yml/badge.svg :target: https://github.com/alanverresen/django-test-urls/actions/workflows/tests.yml :alt: Tests Status .. image:: https://readthedocs.org/projects/django-test-urls/badge/?version=latest :target: https://django-test-urls.readthedocs.io/en/latest/?badge=latest :alt: Documentation Status This small Python package defines a small set of functions that can be used to test the mapping of URLs in a Django application: * whether a URL is mapped correctly to a view * whether a URL is not mapped to a view * whether arguments are captured as expected ============================================================================== Installation ============================================================================== This package is available on the Python Package Index (PyPI), so you can install this package using `pip`: .. code-block:: sh $ python -m pip install django-test-urls ============================================================================== Usage ============================================================================== The fictional app that is being tested in this example contains a view that lists every article that has been released in a given month. The following URL pattern is used to map URLs to the aforementioned view, and captures two values, `year` and `month`, to pass along. .. code-block:: python # urls.py urlpatterns = [ ... path('articles/<int:year>/<int:month>/', views.month_archive), ... ] The following test verifies that an example URL is mapped correctly to the right view and that values are captured correctly. .. code-block:: python # test_urls.py from django_test_urls import resolves_to_view from django_test_urls import resolves_to_arguments from my_app import views def test_monthly_archive(): assert resolves_to_view("articles/2022/11/", views.month_archive) assert resolves_to_arguments("articles/2022/11", (), {"year": 2022, "month": 11})


زبان مورد نیاز

مقدار نام
>=3.7 Python


نحوه نصب


نصب پکیج whl django-test-urls-0.3.0:

    pip install django-test-urls-0.3.0.whl


نصب پکیج tar.gz django-test-urls-0.3.0:

    pip install django-test-urls-0.3.0.tar.gz