@@ -105,16 +105,17 @@ def test_update_supernav(self):
105105 version = Release .PYMANAGER ,
106106 )
107107
108- for os , url in [
109- (self .windows , 'python-3 .10-windows.msi ' ),
110- (self .osx , 'python-3 .10-macos.pkg ' ),
111- (self .linux , 'python-3 .10-linux.tar.gz ' ),
108+ for os , slug in [
109+ (self .windows , 'python3 .10-windows' ),
110+ (self .osx , 'python3 .10-macos' ),
111+ (self .linux , 'python3 .10-linux' ),
112112 ]:
113113 ReleaseFile .objects .create (
114114 os = os ,
115115 release = self .python_3 ,
116+ slug = slug ,
116117 name = 'Python 3.10' ,
117- url = '/ftp/python/{}' .format (url ),
118+ url = '/ftp/python/{}.zip ' .format (slug ),
118119 download_button = True ,
119120 )
120121
@@ -123,11 +124,11 @@ def test_update_supernav(self):
123124 content = Box .get (label = 'download-sources' ).content
124125 self .assertIn ('class="download-os-windows"' , content )
125126 self .assertNotIn ('pymanager-25.0.msix' , content )
126- self .assertIn ('python-3 .10-windows.msi ' , content )
127+ self .assertIn ('python3 .10-windows.zip ' , content )
127128 self .assertIn ('class="download-os-macos"' , content )
128- self .assertIn ('python-3 .10-macos.pkg ' , content )
129+ self .assertIn ('python3 .10-macos.zip ' , content )
129130 self .assertIn ('class="download-os-linux"' , content )
130- self .assertIn ('python-3 .10-linux.tar.gz ' , content )
131+ self .assertIn ('python3 .10-linux.zip ' , content )
131132
132133 ReleaseFile .objects .create (
133134 os = self .windows ,
@@ -142,4 +143,4 @@ def test_update_supernav(self):
142143 content = Box .get (label = 'download-sources' ).content
143144 self .assertIn ('class="download-os-windows"' , content )
144145 self .assertIn ('pymanager-25.0.msix' , content )
145- self .assertIn ('python-3 .10-windows.msi ' , content )
146+ self .assertIn ('python3 .10-windows.zip ' , content )
0 commit comments