MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_diff_method

Method test_diff_method

test/sql/test_compare.py:2404–2409  ·  view source on GitHub ↗

Test the _diff() method that returns a comma-separated string

(self)

Source from the content-addressed store, hash-verified

2402 )
2403
2404 def test_diff_method(self):
2405 """Test the _diff() method that returns a comma-separated string"""
2406 k1 = CacheKey(key=((1, (2, 3)),), bindparams=[], params={})
2407 k2 = CacheKey(key=((1, (5, 7)),), bindparams=[], params={})
2408
2409 eq_(k1._diff(k2), "key[0][1][0]: 2 != 5, key[0][1][1]: 3 != 7")
2410
2411 def test_with_string_differences(self):
2412 """Test detection of string differences"""

Callers

nothing calls this directly

Calls 3

_diffMethod · 0.95
CacheKeyClass · 0.90
eq_Function · 0.90

Tested by

no test coverage detected