mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-10-31 07:57:35 +03:00 
			
		
		
		
	Update stringstore tests
This commit is contained in:
		
							parent
							
								
									84e66ca6d4
								
							
						
					
					
						commit
						b007a2b0d3
					
				|  | @ -7,6 +7,7 @@ from __future__ import unicode_literals | ||||||
| import pytest | import pytest | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | @pytest.mark.xfail | ||||||
| @pytest.mark.parametrize('text', [["a", "b", "c"]]) | @pytest.mark.parametrize('text', [["a", "b", "c"]]) | ||||||
| def test_stringstore_freeze_oov(stringstore, text): | def test_stringstore_freeze_oov(stringstore, text): | ||||||
|     assert stringstore[text[0]] == 1 |     assert stringstore[text[0]] == 1 | ||||||
|  |  | ||||||
|  | @ -28,7 +28,7 @@ def test_stringstore_retrieve_id(stringstore, text): | ||||||
|     assert len(stringstore) == 1 |     assert len(stringstore) == 1 | ||||||
|     assert stringstore[key] == text.decode('utf8') |     assert stringstore[key] == text.decode('utf8') | ||||||
|     with pytest.raises(KeyError): |     with pytest.raises(KeyError): | ||||||
|         stringstore[2] |         stringstore[20000] | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| @pytest.mark.parametrize('text1,text2', [(b'0123456789', b'A')]) | @pytest.mark.parametrize('text1,text2', [(b'0123456789', b'A')]) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user