noqt commited on
Commit
f05f695
·
1 Parent(s): 36e2af6

Fix install epoch metadata test

Browse files
Files changed (1) hide show
  1. tests/test_approvals.py +2 -0
tests/test_approvals.py CHANGED
@@ -37,6 +37,7 @@ class ApprovalTests(unittest.TestCase):
37
  trusted = SimpleNamespace(
38
  st_mode=stat.S_IFREG | 0o600,
39
  st_nlink=1,
 
40
  st_uid=0,
41
  )
42
  with patch.object(Path, "lstat", autospec=True, return_value=trusted):
@@ -44,6 +45,7 @@ class ApprovalTests(unittest.TestCase):
44
  untrusted = SimpleNamespace(
45
  st_mode=stat.S_IFREG | 0o644,
46
  st_nlink=1,
 
47
  st_uid=0,
48
  )
49
  with (
 
37
  trusted = SimpleNamespace(
38
  st_mode=stat.S_IFREG | 0o600,
39
  st_nlink=1,
40
+ st_size=manifest.stat().st_size,
41
  st_uid=0,
42
  )
43
  with patch.object(Path, "lstat", autospec=True, return_value=trusted):
 
45
  untrusted = SimpleNamespace(
46
  st_mode=stat.S_IFREG | 0o644,
47
  st_nlink=1,
48
+ st_size=manifest.stat().st_size,
49
  st_uid=0,
50
  )
51
  with (