Skip to content

Commit 010c87f

Browse files
committed
Inicio de test
1 parent 47c2b9d commit 010c87f

File tree

5 files changed

+25
-7
lines changed

5 files changed

+25
-7
lines changed

test/__init__.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
"""Testing"""
2+
3+
from .test_start import TestStart
4+
5+
__all__ = [
6+
'TestStart',
7+
]

test/conftest.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import os
2+
from telegram import Bot
3+
4+
5+
bot = Bot(token=os.environ['TOKEN'])

test/test_start.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
"""Test de comandos"""
2+
3+
import os
4+
import unittest
5+
from .conftest import bot
6+
7+
8+
class TestStart(unittest.TestCase):
9+
"""Test de distintos comandos sin lógica"""
10+
11+
def test_start(self):
12+
"""Start"""
13+
bot.send_message(os.environ["CHAT_ID"], '/start')

tests/test_no_test.py

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)