Updating IMPLEMENTATION_COVERAGE.md (#2507)
Includes a fix for the script that generates this file.
This commit is contained in:
parent
4d0099499f
commit
37dd02b2ce
2 changed files with 207 additions and 38 deletions
|
|
@ -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']
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue