Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def empty(args):
args = pydeps.parse_args(['foo', '--no-config'] + args.split())
args.pop('fname')
return args
def test_foreground():
assert foreground(black, red, green, yellow, blue, black, white) == white
assert foreground(black, red, green, yellow, blue, black) == yellow
assert foreground(black, red, green, blue, black) == green
assert foreground(black, red, blue, black) == red
assert foreground(black, blue, black) == blue
def test_foreground():
assert foreground(black, red, green, yellow, blue, black, white) == white
assert foreground(black, red, green, yellow, blue, black) == yellow
assert foreground(black, red, green, blue, black) == green
assert foreground(black, red, blue, black) == red
assert foreground(black, blue, black) == blue
def fg(name):
return foreground(
name2rgb(13),
black, white)
def test_foreground():
assert foreground(black, red, green, yellow, blue, black, white) == white
assert foreground(black, red, green, yellow, blue, black) == yellow
assert foreground(black, red, green, blue, black) == green
assert foreground(black, red, blue, black) == red
assert foreground(black, blue, black) == blue
def test_foreground():
assert foreground(black, red, green, yellow, blue, black, white) == white
assert foreground(black, red, green, yellow, blue, black) == yellow
assert foreground(black, red, green, blue, black) == green
assert foreground(black, red, blue, black) == red
assert foreground(black, blue, black) == blue
def test_foreground():
assert foreground(black, red, green, yellow, blue, black, white) == white
assert foreground(black, red, green, yellow, blue, black) == yellow
assert foreground(black, red, green, blue, black) == green
assert foreground(black, red, blue, black) == red
assert foreground(black, blue, black) == blue
def test_rgb2css():
assert rgb2css(red) == '#ff0000'
assert rgb2css(green) == '#00ff00'
assert rgb2css(yellow) == '#00ffff'
assert rgb2css(blue) == '#0000ff'
assert rgb2css(black) == '#000000'
assert rgb2css(white) == '#ffffff'
def test_rgb2css():
assert rgb2css(red) == '#ff0000'
assert rgb2css(green) == '#00ff00'
assert rgb2css(yellow) == '#00ffff'
assert rgb2css(blue) == '#0000ff'
assert rgb2css(black) == '#000000'
assert rgb2css(white) == '#ffffff'
def test_rgb2css():
assert rgb2css(red) == '#ff0000'
assert rgb2css(green) == '#00ff00'
assert rgb2css(yellow) == '#00ffff'
assert rgb2css(blue) == '#0000ff'
assert rgb2css(black) == '#000000'
assert rgb2css(white) == '#ffffff'