Commit c189012c authored by Benoit Orihuela's avatar Benoit Orihuela
Browse files

Merge branch 'fix/fixes-in-doc-generation' into 'develop'

fix: dictionary of setup files not using the correct folder

See merge request !157
parents 2d156760 dbe0c67f
Loading
Loading
Loading
Loading
+4 −1
Original line number Original line Diff line number Diff line
import os
import os
from os.path import dirname
import json
import json




@@ -41,6 +42,8 @@ class InitialSetup:
            'Delete core context and reload it': InitialSetup.delete_core_context()
            'Delete core context and reload it': InitialSetup.delete_core_context()
        }
        }


        self.folder_test_suites = dirname(dirname(dirname(__file__)))

        self.total_files = -1
        self.total_files = -1
        self.files_with_setup = -1
        self.files_with_setup = -1
        self.files_without_setup = -1
        self.files_without_setup = -1
@@ -302,7 +305,7 @@ class InitialSetup:
            print()
            print()


    def generate_dictionaries(self):
    def generate_dictionaries(self):
        folder = "/home/fla/Documents/workspace/bdd/ngsi-ld-test-suite/doc/files"
        folder = f'{self.folder_test_suites}/doc/files'
        attribute = "setup"
        attribute = "setup"


        self.files_with_setup, self.files_without_setup = self.get_property_values(folder, attribute)
        self.files_with_setup, self.files_without_setup = self.get_property_values(folder, attribute)