-
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.
fix bug where bilibili links are not processed correctly
- Loading branch information
1 parent
9669ab3
commit 90b2332
Showing
2 changed files
with
27 additions
and
6 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,15 @@ | ||
from unittest import TestCase | ||
|
||
from models.video import get_bv | ||
|
||
|
||
class TestVide(TestCase): | ||
def test_get_bv(self): | ||
self.assertEqual("BV1Ex411w7d2", | ||
get_bv("https://bilibili.com/video/BV1Ex411w7d2/?spm_id_from")) | ||
|
||
self.assertEqual("BV1Ex411w7d2", | ||
get_bv("https://bilibili.com/video/BV1Ex411w7d2")) | ||
|
||
self.assertEqual("BV1Ex411w7d2", | ||
get_bv("BV1Ex411w7d2")) |