File diff 2d482bb7b045 → 6a416b162d8a
tests/__init__.py
Show inline comments
 
import datetime
 
import io
 
import pathlib
 
import random
 

	
...
 
@@ -6,6 +7,11 @@ import pytest
 

	
 
TEST_DIR = pathlib.Path(__file__).parent
 

	
 
class StringIO(io.StringIO):
 
    def close(self):
 
        self.last_value = self.getvalue()
 
        super().close()
 

	
 
def relpath(*parts):
 
    return TEST_DIR / pathlib.Path(*parts)