diff --git a/scripts/build.py b/scripts/build.py index f502a6f7..c79dc348 100644 --- a/scripts/build.py +++ b/scripts/build.py @@ -17,7 +17,6 @@ import os import re -import pip import sys import shutil import psutil @@ -95,7 +94,7 @@ def download_command(arguments): else: requirements = 'requirements.txt' - pip.main(['install', '-r', os.path.join(source_directory, requirements)]) + subprocess.check_call([sys.executable, '-m', 'pip', 'install', '-r', os.path.join(source_directory, requirements)]) def build_command(arguments): diff --git a/src/app/cartography/shared/widgets/interface-label.spec.ts b/src/app/cartography/shared/widgets/interface-label.spec.ts index f6a870c0..5823a15a 100644 --- a/src/app/cartography/shared/widgets/interface-label.spec.ts +++ b/src/app/cartography/shared/widgets/interface-label.spec.ts @@ -104,7 +104,7 @@ describe('InterfaceLabelsWidget', () => { links[0].nodes[0].label.is_selected = true; widget.draw(linksEnter); - + const drew = svg.canvas.selectAll('g.interface_label_container'); const sourceInterface = drew.nodes()[0]; expect(sourceInterface.getAttribute('class')).toContain('selected');