kopia lustrzana https://github.com/jupyterhub/repo2docker
Don't pass --no-run to find tests
rodzic
081c3c48cf
commit
56cf063636
|
@ -8,16 +8,16 @@ HERE = Path(__file__).parent
|
|||
|
||||
def test_find_image():
|
||||
image_name = f"{secrets.token_hex(8)}:latest"
|
||||
r2d = make_r2d(["--image", image_name, "--no-run", str(HERE)])
|
||||
r2d = make_r2d(["--image", image_name, str(HERE)])
|
||||
|
||||
r2d.start()
|
||||
r2d.build()
|
||||
|
||||
assert r2d.find_image()
|
||||
|
||||
|
||||
def test_dont_find_image():
|
||||
image_name = f"{secrets.token_hex(8)}:latest"
|
||||
r2d = make_r2d(["--image", image_name, "--no-run", str(HERE)])
|
||||
r2d = make_r2d(["--image", image_name, str(HERE)])
|
||||
|
||||
# Just don't actually start the build, so image won't be found
|
||||
assert not r2d.find_image()
|
||||
|
|
Ładowanie…
Reference in New Issue