-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #195 from Atem18/194-isocodeslanguagesgetname=span…
…ish-is Change condition to retrieve element via get
- Loading branch information
Showing
3 changed files
with
9 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build" | |
|
||
[project] | ||
name = "isocodes" | ||
version = "2023.06.24" | ||
version = "2023.08.29" | ||
description = "This project provides lists of various ISO standards (e.g. country, language, language scripts, and currency names) in one place" | ||
authors = [{ name = "Atem18", email = "[email protected]" }] | ||
license = { file = "LICENSE" } | ||
|
@@ -23,6 +23,7 @@ classifiers = [ | |
dependencies = [] | ||
|
||
[project.optional-dependencies] | ||
|
||
dev = ["pre-commit >=2.17.0,<4.0.0", "ruff == 0.0.285", "mypy == 1.5.1"] | ||
|
||
doc = ["mkdocs == 1.5.2", "mkdocs-material == 9.2.3", "mkdocstrings == 0.22.0"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,5 @@ | ||
from isocodes import countries, languages, currencies | ||
|
||
|
||
def test_countries(): | ||
assert len(countries) == 249 | ||
from isocodes import languages | ||
|
||
|
||
def test_languages(): | ||
assert len(languages) == 487 | ||
|
||
|
||
def test_currencies(): | ||
assert len(currencies) == 181 | ||
assert languages.get(name="Spanish") |