Updating IMPLEMENTATION_COVERAGE.md (#2507)

Includes a fix for the script that generates this file.
This commit is contained in:
Jack Danger 2019-10-22 14:51:30 -07:00 committed by GitHub
commit 37dd02b2ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 207 additions and 38 deletions

View file

@ -71,16 +71,16 @@ def print_implementation_coverage(coverage):
def write_implementation_coverage_to_file(coverage):
implementation_coverage_file = "{}/../IMPLEMENTATION_COVERAGE.md".format(script_dir)
# rewrite the implementation coverage file with updated values
# try deleting the implementation coverage file
try:
os.remove("../IMPLEMENTATION_COVERAGE.md")
os.remove(implementation_coverage_file)
except OSError:
pass
implementation_coverage_file = "{}/../IMPLEMENTATION_COVERAGE.md".format(script_dir)
# rewrite the implementation coverage file with updated values
print("Writing to {}".format(implementation_coverage_file))
with open(implementation_coverage_file, "a+") as file:
with open(implementation_coverage_file, "w+") as file:
for service_name in sorted(coverage):
implemented = coverage.get(service_name)['implemented']
not_implemented = coverage.get(service_name)['not_implemented']