Skip to content

Commit

Permalink
Something is wrong with the test
Browse files Browse the repository at this point in the history
  • Loading branch information
DominikDrabik committed Jun 7, 2024
1 parent e97c9d5 commit c54a75c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/app/calc.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
"""
Calculator functions
"""

def add_numbers(x, y):
return x + y
13 changes: 13 additions & 0 deletions app/app/tests.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
"""
Sample tests
"""

from django.test import SimpleTestCase

from app import calc

class CalcTests(SimpleTestCase):
def test_add_numbers(self):
"""Test that two numbers are added together"""
self.assertEqual(calc.add(3, 8), 11)

0 comments on commit c54a75c

Please sign in to comment.