human hand off fix reputation
This commit is contained in:
parent
249fb79aaf
commit
223f846782
2 changed files with 8 additions and 10 deletions
|
|
@ -72,21 +72,21 @@ def test_quote_trail_is_detected_in_forwarded_history():
|
|||
assert _body_has_quote_trail("sender: E", None) is False
|
||||
|
||||
|
||||
def test_mirror_from_uses_one_address_not_both():
|
||||
def test_mirror_from_stays_on_gentic_address():
|
||||
name, address = _mirror_from_identity(
|
||||
{
|
||||
"direction": "inbound",
|
||||
"sender": {
|
||||
"name": "Suyash Dixit",
|
||||
"address": "suyashdixit091@gmail.com",
|
||||
"name": "Parth Dixit",
|
||||
"address": "parthdixit091@gmail.com",
|
||||
},
|
||||
},
|
||||
"Suyash Dixit",
|
||||
"suyash@gentic.email",
|
||||
)
|
||||
assert name == "Suyash Dixit"
|
||||
assert address == "suyashdixit091@gmail.com"
|
||||
assert "gentic.email" not in address
|
||||
assert name == "Parth Dixit"
|
||||
assert address == "suyash@gentic.email"
|
||||
assert "gmail.com" not in address
|
||||
|
||||
agent_name, agent_address = _mirror_from_identity(
|
||||
{"direction": "outbound", "sender": {"address": "suyash@gentic.email"}},
|
||||
|
|
@ -95,7 +95,6 @@ def test_mirror_from_uses_one_address_not_both():
|
|||
)
|
||||
assert agent_name == "Suyash Dixit"
|
||||
assert agent_address == "suyash@gentic.email"
|
||||
assert "gmail.com" not in agent_address
|
||||
|
||||
|
||||
def test_private_subject_contains_customer_name_and_external_subject():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue