mirror of
				https://github.com/f-droid/fdroidserver.git
				synced 2025-11-04 14:30:30 +03:00 
			
		
		
		
	* Skip tidy check if html5print is not available
* install test dependencies on arch
This commit is contained in:
		
							parent
							
								
									d5a90ed60e
								
							
						
					
					
						commit
						b1bde9e407
					
				
					 2 changed files with 7 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -138,7 +138,7 @@ arch_pip_install:
 | 
			
		|||
    - master@fdroid/fdroidserver
 | 
			
		||||
  script:
 | 
			
		||||
    - pacman --sync --sysupgrade --refresh --noconfirm git grep python-pip python-virtualenv tar
 | 
			
		||||
    - pip install -e .
 | 
			
		||||
    - pip install -e .[test]
 | 
			
		||||
    - fdroid
 | 
			
		||||
    - fdroid readmeta
 | 
			
		||||
    - fdroid update --help
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -13,7 +13,6 @@ import requests
 | 
			
		|||
import tempfile
 | 
			
		||||
import json
 | 
			
		||||
import shutil
 | 
			
		||||
from html5print import CSSBeautifier, HTMLBeautifier
 | 
			
		||||
 | 
			
		||||
localmodule = os.path.realpath(
 | 
			
		||||
    os.path.join(os.path.dirname(inspect.getfile(inspect.currentframe())), '..'))
 | 
			
		||||
| 
						 | 
				
			
			@ -378,6 +377,12 @@ class IndexTest(unittest.TestCase):
 | 
			
		|||
        self.assertTrue(os.path.exists(os.path.join('repo', 'index.css')))
 | 
			
		||||
        self.assertTrue(os.path.exists(os.path.join('repo', 'index.png')))
 | 
			
		||||
 | 
			
		||||
        try:
 | 
			
		||||
            from html5print import CSSBeautifier, HTMLBeautifier
 | 
			
		||||
        except ImportError:
 | 
			
		||||
            print('WARNING: skipping rest of test since androguard is missing!')
 | 
			
		||||
            return
 | 
			
		||||
 | 
			
		||||
        with open(os.path.join("repo", "index.html")) as f:
 | 
			
		||||
            html = f.read()
 | 
			
		||||
            pretty_html = HTMLBeautifier.beautify(html)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue