From f873fba5cf87c3a33389d3ea86af451a84d588f8 Mon Sep 17 00:00:00 2001 From: dh00601 <dh00601@surrey.ac.uk> Date: Thu, 30 Dec 2021 10:59:16 +0000 Subject: [PATCH] updated development requirements, and working on the tests --- badges/test_coverage.svg | 4 ++-- binarycpython/tests/test_grid.py | 1 + binarycpython/utils/population_extensions/_dataIO.py | 4 +++- development_requirements.txt | 3 +++ 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/badges/test_coverage.svg b/badges/test_coverage.svg index 636889bb0..0cbe944de 100644 --- a/badges/test_coverage.svg +++ b/badges/test_coverage.svg @@ -15,7 +15,7 @@ <g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11"> <text x="31.5" y="15" fill="#010101" fill-opacity=".3">coverage</text> <text x="31.5" y="14">coverage</text> - <text x="80" y="15" fill="#010101" fill-opacity=".3">44%</text> - <text x="80" y="14">44%</text> + <text x="80" y="15" fill="#010101" fill-opacity=".3">45%</text> + <text x="80" y="14">45%</text> </g> </svg> diff --git a/binarycpython/tests/test_grid.py b/binarycpython/tests/test_grid.py index 6d2469bbc..a3bee3a6b 100644 --- a/binarycpython/tests/test_grid.py +++ b/binarycpython/tests/test_grid.py @@ -26,6 +26,7 @@ TODO: Before running the non-unit tests to cover functions like evolve, we need import os import sys +import json import unittest from binarycpython.utils.functions import ( diff --git a/binarycpython/utils/population_extensions/_dataIO.py b/binarycpython/utils/population_extensions/_dataIO.py index ff19dbba5..9e28d1ff7 100644 --- a/binarycpython/utils/population_extensions/_dataIO.py +++ b/binarycpython/utils/population_extensions/_dataIO.py @@ -666,7 +666,9 @@ class dataIO: def NFS_flush_hack(self, filename): """ Use opendir()/closedir() to flush NFS access to a file. - Note: this may or may not work! + NOTE: this may or may not work! + + TODO: This function leads to a complaint about unclosed scandir operators. Check if that can be resolved. """ os.sync() dirname = os.path.dirname(filename) diff --git a/development_requirements.txt b/development_requirements.txt index 4f93d477a..a751ebdba 100644 --- a/development_requirements.txt +++ b/development_requirements.txt @@ -4,3 +4,6 @@ sphinx sphinx_autodoc_typehints nbsphinx twine +docstr-coverage +coverage +coverage-badge -- GitLab