We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24eb3f9 commit c0a33b3Copy full SHA for c0a33b3
tests/unit/test_args.py
@@ -40,6 +40,17 @@ def test_dry_run():
40
assert not r2d.run
41
assert not r2d.push
42
43
+
44
+def test_mem_limit():
45
+ """
46
+ Test various ways of passing --build-memory-limit
47
48
+ r2d = make_r2d(['--build-memory-limit', '1024', '.'])
49
+ assert int(r2d.build_memory_limit) == 1024
50
51
+ r2d = make_r2d(['--build-memory-limit', '3K', '.'])
52
+ assert int(r2d.build_memory_limit) == 1024 * 3
53
54
def test_run_required():
55
"""
56
Test all the things that should fail if we pass in --no-run
0 commit comments