19 lines
413 B
Python
19 lines
413 B
Python
import pytest
|
|
from sut.backend.services.bargaining_algorithm import BargainingAlgorithm
|
|
|
|
def test_evaluate_offer_success():
|
|
# Arrange
|
|
character = "frodo"
|
|
user_offer = 50
|
|
current_ask = 60
|
|
round_num = 1
|
|
# Act
|
|
result = BargainingAlgorithm.evaluate_offer(
|
|
user_offer,
|
|
current_ask,
|
|
character,
|
|
round_num
|
|
)
|
|
# Assert
|
|
assert isinstance(result, dict)
|