mirror of
				https://github.com/enpaul/peewee-plus.git
				synced 2025-11-04 09:16:47 +00:00 
			
		
		
		
	Fix py36 incompatibility with pathlib usage
This commit is contained in:
		@@ -9,7 +9,7 @@ def fakedb(tmp_path):
 | 
				
			|||||||
    """Create a temporary pho-database (fakedb) for testing fields"""
 | 
					    """Create a temporary pho-database (fakedb) for testing fields"""
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    sqlite = peewee.SqliteDatabase(
 | 
					    sqlite = peewee.SqliteDatabase(
 | 
				
			||||||
        tmp_path / f"{uuid.uuid4()}.db",
 | 
					        str(tmp_path / f"{uuid.uuid4()}.db"),
 | 
				
			||||||
        pragmas={
 | 
					        pragmas={
 | 
				
			||||||
            "journal_mode": "wal",
 | 
					            "journal_mode": "wal",
 | 
				
			||||||
            "cache_size": -1 * 64000,
 | 
					            "cache_size": -1 * 64000,
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user