Git Product home page Git Product logo

uap's People

Contributors

samulus avatar smcgonegle avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

uap's Issues

Add session management system

I'm going to incorporate TinyDB + beaker session + some of the stub modules I added to get the job done. Will try to complete this ASAP. There will be no SSL support for the time being. I'll have to add it if we have time at the end.

Implement tests/mock_library.py module

It should use the tempfile module to populate a temporary directory with bogus audio files with random (but fixed and non-changing tags) for testing the misc backend modules in the application.

Implement test_userdb.py module to adequately test userdb.py

It should adequately test the following methods:

  • add_user
  • change_password
  • log_user_out
  • log_user_in
  • remove_user
  • find_user
  • is_valid_session_id
  • get_user_session_id
  • create_new_user_session

The test should be implemented in the test_userdb.py module. You can read more about writing unittests in Python using the following resources:

I haven't implemented this at all yet but I added a bunch of stub methods, you will have to add more to adequately test everything.

Implement src/config.py module

Allows the user to save all configuration information like the port / host / music directory offline to a json file. We can use the getopt module in src/uap.py to parse commandline arguments to the application and allow the user to either pass the path to their config.json file OR have it load a default config.json file from the application directory.

Implement search tab / component on client

It should use ajax (see Vue.get) to request results from the server (send a GET request to api/search) and then display the results, allowing the user to queue them.

Rewrite test_taglist.py module to adequately test taglist.py

It should adequately test the following methods:

  • load_from_directory
  • search
  • is_song_path_in_taglist
  • get_files_with_ext

The test should be implemented in the test_taglist.py module. If you look in there right now you can see an old test I wrote that no longer works. You can read more about writing unittests in Python using the following resources:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.