File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3737from scanpipe .pipes import get_resource_diff_ratio
3838from scanpipe .pipes import get_text_str_diff_ratio
3939from scanpipe .pipes import scancode
40+ from scanpipe .pipes import _clean_package_data
4041from scanpipe .pipes .input import copy_input
4142from scanpipe .pipes .input import copy_inputs
4243from scanpipe .tests import dependency_data1
4546from scanpipe .tests import mocked_now
4647from scanpipe .tests import package_data1
4748from scanpipe .tests import resource_data1
48- from scanpipe .pipes import _clean_package_data
4949
5050
5151class ScanPipePipesTest (TestCase ):
@@ -449,16 +449,18 @@ def test_scanpipe_pipes_collect_and_create_codebase_resources(self):
449449 self .assertEqual ("from" , from_resource .tag )
450450 to_resource = p1 .codebaseresources .get (path = "to/a.txt" )
451451 self .assertEqual ("to" , to_resource .tag )
452-
453- def test_clean_package_data_normalizes_boolean_strings ():
452+
453+ def test_clean_package_data_normalizes_boolean_strings (self ):
454454 package_data = {
455455 "type" : "npm" ,
456456 "name" : "react" ,
457457 "version" : "1.0" ,
458458 "is_virtual" : "true" ,
459459 }
460+
460461 cleaned = _clean_package_data (package_data )
461- assert cleaned ["is_virtual" ] is True
462+
463+ self .assertTrue (cleaned ["is_virtual" ])
462464
463465
464466
You can’t perform that action at this time.
0 commit comments