Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix (v0.0.12): rename utils -> helpers in README #13

Merged
merged 2 commits into from Jan 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
18 changes: 9 additions & 9 deletions README.md
Expand Up @@ -2,25 +2,25 @@

A handy collection of datetime utils.

[![Build](https://github.com/DeveloperRSquared/datetime-utils/actions/workflows/build.yml/badge.svg)](https://github.com/DeveloperRSquared/datetime-utils/actions/workflows/build.yml)
[![Publish](https://github.com/DeveloperRSquared/datetime-utils/actions/workflows/publish.yml/badge.svg)](https://github.com/DeveloperRSquared/datetime-utils/actions/workflows/publish.yml)
[![Build](https://github.com/DeveloperRSquared/datetime-helpers/actions/workflows/build.yml/badge.svg)](https://github.com/DeveloperRSquared/datetime-helpers/actions/workflows/build.yml)
[![Publish](https://github.com/DeveloperRSquared/datetime-helpers/actions/workflows/publish.yml/badge.svg)](https://github.com/DeveloperRSquared/datetime-helpers/actions/workflows/publish.yml)

[![Python 3.7+](https://img.shields.io/badge/python-3.7+-brightgreen.svg)](#datetime-utils)
[![PyPI - License](https://img.shields.io/pypi/l/datetime-utils.svg)](LICENSE)
[![PyPI - Version](https://img.shields.io/pypi/v/datetime-utils.svg)](https://pypi.org/project/datetime-utils)
[![Python 3.7+](https://img.shields.io/badge/python-3.7+-brightgreen.svg)](#datetime-helpers)
[![PyPI - License](https://img.shields.io/pypi/l/datetime-helpers.svg)](LICENSE)
[![PyPI - Version](https://img.shields.io/pypi/v/datetime-helpers.svg)](https://pypi.org/project/datetime-helpers)

[![codecov](https://codecov.io/gh/DeveloperRSquared/datetime-utils/branch/main/graph/badge.svg?token=UI5ZDDDXXB)](https://codecov.io/gh/DeveloperRSquared/datetime-utils)
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/DeveloperRSquared/datetime-utils/main.svg)](https://results.pre-commit.ci/latest/github/DeveloperRSquared/datetime-utils/main)
[![codecov](https://codecov.io/gh/DeveloperRSquared/datetime-helpers/branch/main/graph/badge.svg?token=UI5ZDDDXXB)](https://codecov.io/gh/DeveloperRSquared/datetime-helpers)
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/DeveloperRSquared/datetime-helpers/main.svg)](https://results.pre-commit.ci/latest/github/DeveloperRSquared/datetime-helpers/main)
[![Imports: isort](https://img.shields.io/badge/%20imports-isort-%231674b1?style=flat&labelColor=ef8336)](https://pycqa.github.io/isort/)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![Checked with mypy](http://www.mypy-lang.org/static/mypy_badge.svg)](http://mypy-lang.org/)

## Install

Install and update using [pip](https://pypi.org/project/datetime-utils/).
Install and update using [pip](https://pypi.org/project/datetime-helpers/).

```sh
$ pip install -U datetime-utils
$ pip install -U datetime-helpers
```

## Contributing
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
@@ -1,6 +1,6 @@
[tool.poetry]
name = "datetime-helpers"
version = "0.0.11"
version = "0.0.12"
description = "Util for working with date and datetime objects"
authors = ["rikhilrai"]
license = "MIT"
Expand Down
15 changes: 7 additions & 8 deletions src/tests/test_utils.py
Expand Up @@ -7,7 +7,6 @@
from http_exceptions.client_exceptions import BadRequestException

import datetime_helpers
from datetime_helpers import DayOfWeek


class TestGetPreviousBusinessDay:
Expand Down Expand Up @@ -125,13 +124,13 @@ class TestGetDayOfWeek:
@pytest.mark.parametrize(
argnames="dt,day_of_week",
argvalues=[
(datetime.date(2021, 2, 1), DayOfWeek.MONDAY), # monday
(datetime.date(2021, 2, 2), DayOfWeek.TUESDAY), # tuesday
(datetime.date(2021, 2, 3), DayOfWeek.WEDNESDAY), # wednesday
(datetime.date(2021, 2, 4), DayOfWeek.THURSDAY), # thursday
(datetime.date(2021, 2, 5), DayOfWeek.FRIDAY), # friday
(datetime.date(2021, 2, 6), DayOfWeek.SATURDAY), # saturday
(datetime.date(2021, 2, 7), DayOfWeek.SUNDAY), # sunday
(datetime.date(2021, 2, 1), datetime_helpers.DayOfWeek.MONDAY), # monday
(datetime.date(2021, 2, 2), datetime_helpers.DayOfWeek.TUESDAY), # tuesday
(datetime.date(2021, 2, 3), datetime_helpers.DayOfWeek.WEDNESDAY), # wednesday
(datetime.date(2021, 2, 4), datetime_helpers.DayOfWeek.THURSDAY), # thursday
(datetime.date(2021, 2, 5), datetime_helpers.DayOfWeek.FRIDAY), # friday
(datetime.date(2021, 2, 6), datetime_helpers.DayOfWeek.SATURDAY), # saturday
(datetime.date(2021, 2, 7), datetime_helpers.DayOfWeek.SUNDAY), # sunday
],
)
def test_get_day_of_week(self, dt: datetime.date, day_of_week: str) -> None:
Expand Down