Example #1
0
def test_codeRunnerTest():
    filename = r"C:\Users\Jack\PycharmProjects\COMPSCI235 assignment 1\CS235FlixSkeleton\datafiles\Data1000Movies.csv"
    movie_file_reader = MovieFileCSVReader(filename)
    movie_file_reader.read_csv_file()

    print(
        f'number of unique movies: {len(movie_file_reader.dataset_of_movies)}')
    print(
        f'number of unique actors: {len(movie_file_reader.dataset_of_actors)}')
    print(
        f'number of unique directors: {len(movie_file_reader.dataset_of_directors)}'
    )
    print(
        f'number of unique genres: {len(movie_file_reader.dataset_of_genres)}')
def read_csv_file():
    movie_file_reader = MovieFileCSVReader(
        os.path.join("C:", os.sep, "COMPSCI-235", "CS235FlixSkeleton",
                     "datafiles", "Data1000Movies.csv"))
    movie_file_reader.read_csv_file()
    return movie_file_reader
Example #3
0
def movieFileCSVReader():
    return MovieFileCSVReader()
Example #4
0
def test_dataset_of_genres():
    path = r"C:\Users\Jack\PycharmProjects\COMPSCI235 assignment 1\CS235FlixSkeleton\datafiles\Data1000Movies.csv"
    test = MovieFileCSVReader(path)

    print(len(test.dataset_of_genres))