Skip to content

Commit

Permalink
Merge pull request #12 from gauravpatel67/master
Browse files Browse the repository at this point in the history
correct-
  • Loading branch information
gauravpatel67 authored Nov 19, 2024
2 parents a92cb5c + 0c317da commit 761f9ae
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def test_addition_with_missing_second_number():
result = lambda_handler(event, None)

assert result["statusCode"] == 400
assert result["body"]["error"] == "Both numbers are required for this operation."
assert result["body"]["error"] == "Both numbers are required"

def test_addition_with_missing_first_number():
event = {
Expand All @@ -33,7 +33,7 @@ def test_addition_with_missing_first_number():

result = lambda_handler(event, None)
assert result["statusCode"] == 400
assert result["body"]["error"] == "Both numbers are required for this operation."
assert result["body"]["error"] == "Both numbers are required"

def test_addition_with_missing_both_number():
event = {
Expand All @@ -45,4 +45,4 @@ def test_addition_with_missing_both_number():
result = lambda_handler(event, None)

assert result["statusCode"] == 400
assert result["body"]["error"] == "Both numbers are required for this operation."
assert result["body"]["error"] == "Both numbers are required"
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def test_divide_with_missing_second_number():
result = lambda_handler(event, None)

assert result["statusCode"] == 400
assert result["body"]["error"] == "Both numbers are required for this operation."
assert result["body"]["error"] == "Both numbers are required"

def test_divide_with_missing_first_number():
event = {
Expand All @@ -47,7 +47,7 @@ def test_divide_with_missing_first_number():

result = lambda_handler(event, None)
assert result["statusCode"] == 400
assert result["body"]["error"] == "Both numbers are required for this operation."
assert result["body"]["error"] == "Both numbers are required"

def test_divide_with_missing_both_number():
event = {
Expand All @@ -59,4 +59,4 @@ def test_divide_with_missing_both_number():
result = lambda_handler(event, None)

assert result["statusCode"] == 400
assert result["body"]["error"] == "Both numbers are required for this operation."
assert result["body"]["error"] == "Both numbers are required"
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def test_multiply_with_missing_second_number():

result = lambda_handler(event, None)
assert result["statusCode"] == 400
assert result["body"]["error"] == "Both numbers are required for this operation."
assert result["body"]["error"] == "Both numbers are required"

def test_multiply_with_missing_first_number():
event = {
Expand All @@ -34,7 +34,7 @@ def test_multiply_with_missing_first_number():
result = lambda_handler(event, None)

assert result["statusCode"] == 400
assert result["body"]["error"] == "Both numbers are required for this operation."
assert result["body"]["error"] == "Both numbers are required"

def test_multiply_with_missing_both_number():
event = {
Expand All @@ -46,4 +46,4 @@ def test_multiply_with_missing_both_number():
result = lambda_handler(event, None)

assert result["statusCode"] == 400
assert result["body"]["error"] == "Both numbers are required for this operation."
assert result["body"]["error"] == "Both numbers are required"
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def test_subtraction_with_missing_second_number():
result = lambda_handler(event, None)

assert result["statusCode"] == 400
assert result["body"]["error"] == "Both numbers are required for this operation."
assert result["body"]["error"] == "Both numbers are required"

def test_subtraction_with_missing_first_number():
event = {
Expand All @@ -36,7 +36,7 @@ def test_subtraction_with_missing_first_number():
result = lambda_handler(event, None)

assert result["statusCode"] == 400
assert result["body"]["error"] == "Both numbers are required for this operation."
assert result["body"]["error"] == "Both numbers are required"

def test_subtraction_with_missing_both_number():
event = {
Expand All @@ -48,4 +48,4 @@ def test_subtraction_with_missing_both_number():
result = lambda_handler(event, None)

assert result["statusCode"] == 400
assert result["body"]["error"] == "Both numbers are required for this operation."
assert result["body"]["error"] == "Both numbers are required"

0 comments on commit 761f9ae

Please sign in to comment.