For testing purposes, you can simply make a symbolic link to textbook_consts.tex just like you do for the class file.
In the upper level you can keep as many versions of the class file and of the definition file, provided you have symbolic links pointing to the most recent version (or the one you want to test). So you could have
├── test
│ ├── test.tex
│ ├── textbook.cls -> ../textbook.cls
│ └── textbook_consts.tex -> ../textbook_consts.tex
├── textbook.cls -> textbook-0.02.cls
├── textbook_consts.tex -> textbook_consts-0.02.tex
├── textbook-0.01.cls
├── textbook_consts-0.01.tex
├── textbook-0.02.cls
└── textbook_consts-0.02.tex
However, the most followed tradition is to give .def to such auxiliary files. I'd avoid underscores, though, because at least one package changes its category code. Not a big deal, though, because usually packages are loaded later than class files.
When you are finished with the development, you can put the relevant files in a textbook directory under one of the main trees:
<TREE>/tex/latex/textbook/
The <TREE> can have (for TeX Live) three meanings:
/usr/local/texlive/2015/texmf-dist
/usr/local/texlive/texmf-local
~/texmf
referring to the main tree, the local tree and the personal tree.
Adding non distributed files to the main tree is discouraged, because you'll lose reference to them with upgrades. Adding files to the local tree requires running mktexlsr (and the files will be available to all users of your machine), while this is not needed for additions to the personal tree.
Note that the personal tree is ~/Library/texmf when MacTeX is used.
On Windows boxes running MiKTeX the personal tree and the local tree are not available by default (see Create a local texmf tree in MiKTeX).
grffilecan help, but a sane naming-scheme seems to be a better idea. – Johannes_B Jun 28 '15 at 15:48grffileis for graphics files only (\includegraphics). – Heiko Oberdiek Jun 28 '15 at 16:02.defto the input file. So long astextbook_constsis in a place where TeX is able to findtextbook.cls, there should be no problem. – egreg Jun 28 '15 at 16:04textbook_consts.tex– egreg Jun 28 '15 at 16:06$TEXINPUTSis set accordingly then you do not need symbolic links. Rather than using\inputfortextbook_consts.texI would call this filetextbook_consts.styand use\usepackage{textbook_consts}– Jun 28 '15 at 17:10~/texmf/tex/latex/textbook/, am I right? – Evpok Jun 28 '15 at 18:13.defin~/tex/latex/definitions/but that would not necessarily be very sensible. But you want it somewhere it can be found. – cfr Jun 28 '15 at 18:18texmf/. – Evpok Jun 28 '15 at 18:57~/texmf/tex/latex/definitions/. – cfr Jun 28 '15 at 19:00