[go: up one dir, main page]

Skip to content

Commit

Permalink
add decorator
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Yavorsky committed May 3, 2024
1 parent a7cc46b commit 0ba9b60
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_dotenv.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import unittest
from decimal import Decimal

from src.mapenv.improve import Improve as improve
from src.mapenv.main import MapEnv


Expand All @@ -9,7 +10,8 @@ def __init__(self, val: str) -> None:
self.val = val


class Telegram(MapEnv, load_env="tests/.env", override=True):
@improve(envfile="tests/.env", override=True, frozen=True)
class Telegram(MapEnv):
TOKEN: str
FLOAT: float
SET: set[int]
Expand Down

0 comments on commit 0ba9b60

Please sign in to comment.