def test_follow(sytra_file_fixture): stck = Stocker(sytra_file_fixture) # NO ERROR # follow 4382, 6890 in prepare stck.follow_interface(codes=[], force=True) # create and print sbase stck.create_sbase() # save to sytraconf.toml stck.dump()
def run(root_parser): namespace = root_parser.parse_args() if namespace.subcom=='init': Stocker.stocker_init(**vars(namespace)) return stck = Stocker(namespace.rootpath) if namespace.debug: print(stck.get_follows_tuple(), stck.get_lateststr()) print(namespace) return if hasattr(namespace, 'func'): namespace.func( stck, namespace) if namespace.create: stck.create_sbase() stck.dump()