first commit

This commit is contained in:
Ayxan
2022-05-23 00:16:32 +04:00
commit d660f2a4ca
24786 changed files with 4428337 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
"""Tests for nbformat corpus"""
# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
from .. import words
def test_generate_corpus_id(recwarn):
assert len(words.generate_corpus_id()) > 7
# 1 in 4294967296 (2^32) times this will fail
assert words.generate_corpus_id() != words.generate_corpus_id()
assert len(recwarn) == 0

View File

@@ -0,0 +1,5 @@
import uuid
def generate_corpus_id():
return uuid.uuid4().hex[:8]