This repository has been archived by the owner on Jun 30, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
367 additions
and
297 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#! /usr/bin/env python3 | ||
# -*- coding: utf-8 -*- | ||
|
||
import logging | ||
|
||
from fuocore.netease.models import NSongModel | ||
|
||
logging.basicConfig() | ||
logger = logging.getLogger('fuocore') | ||
logger.setLevel(logging.DEBUG) | ||
|
||
|
||
def test_model_display(): | ||
song = NSongModel.create_by_display( | ||
identifier=254548, | ||
title='成全', | ||
artists_name='刘若英') | ||
assert song.album_name_display == '' | ||
assert song.title_display == '成全' | ||
print(song.url, song.title) | ||
assert song.album_name_display != '' | ||
|
||
|
||
def main(): | ||
test_model_display() | ||
|
||
|
||
if __name__ == '__main__': | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.